Do you want to attract talent or people who take anything they can get? People who know what they're worth aren't going to waste investing their time into an employer who can't even guarantee that they'll still have a job next week.
Mundane government employees are some of the most dedicated workers I've met. There's a deep array of jobs that aren't flashy but are foundational and depend on staff who can build up long institutional knowledge.
Thars like saying "the reason the best employees are good is that they are paid the most money". You're putting the cart ahead of the horse here.
They are dedicated partially because they can spend their time focused on doing their job and not grinding leet code looking for the next pay bump in 2 years. Those pay scales are very strict in government, and very predictable.
Mundane government employees are some of the most dedicated workers I've met. There's a deep array of jobs that aren't flashy but are foundational and depend on staff who can build up long institutional knowledge.