This is the question exactly.
The difficulty is that there is a downward spiral: if fewer talented people enter the public service or politics because it is becoming relatively unattractive, the average performance of that class goes down. That makes it harder to justify any increase in salary or other benefits, reinforcing the dynamic.