A friends' company has even ended remote hiring altogether after auditing their remote hires and discovering a lot of connections from countries they didn't expect.
There's even a growing scam where people get recruited to lend their identities and bank accounts to someone else to get the job. Then they're asked to install some software on the company laptop and leave it open and powered on during the workday so someone can operate it remotely. Remote work is wild right now.
The time commitment is real, but on-site travel is almost always reserved for the last round on-site. Often as a final pass verification, or when the company is down to a couple of final candidates. Companies aren't flying every applicant out for all of the interviews. If you get to that point, you're close to the job.
Also, in terms of the costs to the applicants, this touches on the oligopolistic nature of so many industries today, which has resulted in high concentrations of the most desirable jobs in places with the highest costs of living.
Basically, unless you already have a FAANG job or are independently wealthy, it's not easy to up and move to Silicon Valley, Seattle, etc. and job hunt.