How do freelancers get away with freelancing as their primary income without PR or spouse visa?

I've been seeing a lot of foreign freelancers in Japan lately (photographers, videographers, content creators, etc.) who seem…