Ostensibly the purpose of taxation is to raise revenue.
Practically, taxation has been used to reward certain behaviors and punish other ones.
Well said. Raising revenue is just the cover for the actual purpose of rewarding and/or controlling people.