Are you sure you bought whatever it was from Amazon?
Their website is kind of hard to figure out sometimes. The entire order process looks the same, regardless of if you're buying from Amazon or one of their affiliated stores. You may have bought something from a company that does business there in alabama, thus you had to be charged sales tax.