Yes, long term capital gains tax is lower than corporate tax. But you limited it to salary not compensation.
When we talk about compensation we need to start talking about things like golden handcuffs or parachute. Things linked to performance etc.
But corporate taxes also need to be kept in context. If I'm not "allowed" to pay my CEO a lot (which means he/she may leave) then I'll spend the money otherwise to reinvest etc. (A la Amazon). Is that "wrong" as well?