The guy wanted to get fired, obviously. These people who kamikaze like that are getting free followers, a great story, a ton of inbound job interest, and the pleasure of wasting some of Elon's time (his most valuable and limited resource). If you resign quietly, you get nothing. Makes total sense.
Kinda shitty of the boss to be dunking on the employees to begin with.