Are you sure this is the case? You’re not allowed to get hired locally but I believe you can work online for a company based in your country of residence provided you don’t stay long enough to become a resident of the new country (which you can’t on a tourist visa). I visited Canada for 6 months on a tourist visa. I had a full immigration interview at the airport when I arrived and they were perfectly happy with me working freelance/online for those 6 months. They were just clear I couldn’t become an employee of a Canadian company.
That said, if you're working for a multinational company, you may want to be careful. Being hired in country A, for a company that has presence in both A and B, and then flying and working for a few months in B, could conceivably raise all sorts of flags if noticed.
My employer adopted a similar policy (just not as publicly announced as Airbnb's), and the way they work around this problem is by, assuming you reside in A, allowing you to travel and work in B but explicitly disallowing you from entering an office location in B.
Most folks will end up working on tourist visas which is explicitly not allowed around most of the world.
I work at a remote first company and HR have given a nod and a wink to this, but with the requirement that you maintain a permanent address and pay taxes in a country where they have an office.