You can have it generate shitty code and then compare it against examples it finds online to iterate that code. Also, it was trained on the whole internet, including those good solutions, and can often reproduce them on its own. but you have to tell it, explicitly, to do all this to make better code, rather than just asking for the code.
In one of my 300 level poli sci classes, literally one of the first things the professor said is that in politics, everyone running for office is a power-hungry narcissist. It’s only a slight exaggeration.
That type of person is at every level of politics. I’d wager that if you could get data on the real motivations of every person who has ever run for office, you’d probably see the same amount of those people at every level, from school board to president.