Because renting out a hotel room is not a sale. Ergo, a sales tax does not apply. An occupancy tax is the tax levied on short-term leases (i.e.,, hotels).
It's mainly because (a) sales taxes are much less than these occupancy taxes, and (b) socking it to the visitor has no political repercussions; they're not going to vote in the elections anyways.