A friend of mine from DOD remarked once, "I don't want a job, I want a position". This is often true in industry as well as the Govt. Think of a bank branch manager or something like that. In the government (I am a 30+year Fed, my wife teaches school, and I know a lot of state and local employees) As in industry, one of the best positions you can get is to head a division you like. You are on the inside of management, you cannot be replaced except for really screwing up, and your bosses will come and go.
In local cities, the head of the fire, police, personnel or any department can be much harder to replace than the city manager. And mayors will come and go.
Now there are some challenges, you have to get up to the position you want and that takes education, skill, performance and politics. But generally you only have to do this once or in the cycle as you go up the line. Once you are there, if you do not have further ambitions, you are sort of set. Of course, you still have to make your function, well function. But you should understand it and you would have selected most of the folks below you so choose good people. (Hint: better to go without than select the wrong person.)
There is not much motivation to go for the real senior jobs in any government. In industry CEOs get what, 40 times the working level pay? In government the highest positions are rarely 8 and more likely 4 times the working wage. And you work all the time, and get turned over for poor performance or a change in politics. Senior people do go out of the government to high paying jobs in industry so that could be part of the plan.
Anyway, just comments from my experience.