In Europe, we have freedom of movement for goods and services, special tax status still has to exist between (for example) Denmark and Sweden, for Swedes who travel the bridge to Denmark to work. -- I believe this is called the Oresund agreement.
You must have a primary residence and you must spend 51% of your time there. Other countries in Europe do not permit working from them unless it's temporary, I believe you have 3 months to register with the local tax office.
For example, during the recent tax year I moved, my accountant filed my taxes in two states for before and after the move.
Typically, you designate the number of days in each location.
Like I said, professional athletes have to pay taxes every day that they pay a game in a state/country. That means even if a professional athlete flies in for a game, and fly out the same day, they still have to pay taxes for the one day they were physically there.
Shakira is facing tax evasion changes and jail time because of a dispute as to where she was living.
You said “it’s nobody’s business where you sleep” which is patently false. Like I said, you are advocating tax evasion by not following the tax rules of every country where you sleep at night.
You'll also note that the concept of "the place you reside" is somewhat of a leaky abstraction. Where do you reside if you own 12 flats in 12 different countries and spend 30 days in each of them per year?
Where do you reside if you are actually completely homeless and spend a month each in a different AirBnB living out of a suitcase in 12 different countries in a given year?
The case of having two or three homes in two or three different jurisdictions is a common one, though it usually has some convoluted rules for which qualifies as your "domicile" or "tax home".