It taxes regular people differently than taxing them directly. VAT rates on food tend to be regressive. Taxing company profits has little effect on prices.
It works in the sense that some people feel better about paying higher taxes if they pay them by paying higher prices to corporations that then pay the tax.
And other people feel better about raising taxes on people if they do so by raising taxes on corporations that then raise prices on people.
There are some taxes that are actually designed to work that way - the most common instance being "sin" taxes on tobacco, alcohol, and cannabis as a way to reduce demand on those items by making them much more expensive.