It'll make more sense if you compare the United States to the European Union, with each American State being it's own country.
Both are:
Viewing the US as a Union rather than a homogeneous country will make more sense as to why states vary so wildly from each other. Instead of California vs Texas, think Sweden vs Poland.