Tax domicile laws are often in effect only after 180-something days in most developed countries. For example, imagine you are moving after 270 from e.g. Croatia with 12% tax rate to Germany with 42% tax rate. The 90 days you are making money in Germany can be still taxed in Croatia.
IIRC, most countries with income tax tax by where income is earned (that is, where the work is done) by default, not residency, though many have tax treaties with each other that assign income earned by residents of a foreign country in the other treaty partner back to the country of residence.