At our most charitable, we ought to recognize that in a democracy elected officials are plucked from the ranks of the general public. The qualifications for office are that you are the most popular person in the room, not the smartest, or the most professional.
Obviously, it is a gamble, to wit the current administration, but I'm sure, on election day, most voters of the USA thought that the current president would do the best job. Many learn now they were mistaken, but this happens. That's the beauty of democracy, we can vote the incompetents out.
It's disgusting but it's not that hard to figure out how it happens.