In reality people are trying to put food on their table and they will spend the entire weekend polishing their submission. If you don't follow suit your submission is going to look comparatively bad.
It is different than traveling to a different city for an onsite because you're not wasting your teams time on a candidate unless you think they have a good chance of getting to the end. You have "skin in the game" as they say.
If hiring managers were only issuing homework to candidates already scheduled for a full round of interviews, so interviewers have standardized material to talk about and as a substitute for whiteboarding, it wouldn't be so bad. Instead you mostly get nothing to show for your time and when you do get a round of interviews nobody looks at what you did and wants you to do medium+hard leetcode on the shared screen.