This is moreso a failing of states to capitalize on remote workers. Plenty of people would just get a visa if possible. But it's very complex for most countries, and especially the USA.
edit: Estonia is the only one that I know of that explicitly considers the position of being employed by a company located in a foreign country. https://e-resident.gov.ee/nomadvisa/