Why do the people of New York vote for Democrats, while those in Alabama vote for Republicans?

Why do the people of New York vote for Democrats, while those in Alabama vote for Republicans?
Post Opinion