That's the whole process if you get hired. In the hiring process at my company we'll maybe give take-home assignments to three candidates for one role. So by the time you're doing our 4-hour assignment, you have about a 1/3 chance of getting the job. Not a bad deal in my opinion.
If, given you are at the beginning of the "do onsite interview loop" stage, you have a 30% chance of getting an offer, you will need to do NINE of those to have a 95% chance of having gotten >= 1 offer.
So yeah that is kind of a bad deal assuming you already have a full-time job and/or family/kids. I guess if you're single and unemployed then it's not so bad, aside from the fact that being unemployed greatly cuts your bargaining power?
As a whole unemployed cuts your bargaining power, it's natural to say "why should I leave my job" as a counterpoint. The flipside game is if you can arrange multiple offers at once (i.e. a high value candidate) while unemployed, it's a fantastic feeling. Then it's more like an auction, and auctions can get irrational. Turnabout is fair play and all that
Then for those jobs it is not reasonable to have 5 hour interviews, and I doubt they do since they care about costs. But the companies that started this trend pays extremely well, developers gladly jump through those hoops for those massive salaries.
"cushy" is how you describe it, huh? Well I chose to work in games so I knew I'd get the worst of all worlds working there, but I'd still keepo in mind
1. some workers are still doing full time jobs, some with families to care for. "a few hours" per app adds up quickly
2. SWE's are explicitly exempt from overtime in the US. And it's not unusual even outside of games to hear 50-60 hour work weeks. Or on-call roles. Probably even more in these times since company's "solution" to the economic changes is to lay off 75% of the workforce and triple the remaining 25%'s responsibilities.
3. it's not just top companies doing these hoops. Everyone copied the top tech companies without the top tech pay. 4-5 hours for Google is more than fine, 4-5 hours for some Law Firm that barely pays 60k in a high CoL area makes no sense.