It's because their wages are paid for by municipalities. People who work for the German federal government, filling in spreadsheets with ideas for paving bike paths in Peru, get paid twice what they make because the federal government can afford to pay their people twice as much.
It is, what it is. Workers can also be cantillionaires.