In those cases letting the stick around for their two weeks isn’t beneficial to the company so they will accept their resignation and ask them to leave immediately. The company I’m with accepts the resignation and pays you the two weeks left but doesn’t want you working anymore so they send you home and change your login