"Mayor" where I live is effectively a volunteer position. Raising the salary would require the village fully fund the position for the extent of a mayoral term which is too expensive.
So instead they hire a city manager who basically runs everything, at a much higher salary, which meets budget rules since they could in theory fire him if they run out of money. Hence the city manager is an unelected strong executive, which is not good for democracy.