As a South African, it is well known here (well, amongst the educated) that the vast majority of management level and up government positions are awarded based on who you know rather than what you know.
These people who don't actually do their job properly very rarely get dismissed, at worst, and only after a public debacle, they tend to be shuffled off to some other position in a different department that they're equally unqualified for.
This just one of the many, many, many, symptoms of this general problem.