Why? This sounds (especially given the two specific states named) more like an impression from partisan media than practical advice. Those two states do indeed happen to have comparatively high tax burden and metro areas with high real estate costs. But the relationship isn't well correlated. Maine and Minnesota are "high tax" states with cheap housing, and Alaska has (IIRC) the lowest tax burden but wildly higher cost of living. Similarly Miami has low tax and outrageous real estate, etc...
(Also recognize that state and local taxes make up a comparatively small share of an individual's tax burden in the US, anyway. The difference in total tax between NY and TN is something like 20% if I'm doing the math right)