What is the problem here? The law being complicit? Extremely effective charisma and propaganda?
Politics is full of these characters, and it seems that the more awful they are, the higher up the ranks they go. It's like humans are conditioned to celebrate the worst in people, and the pessimistic concern that this will never change is quite powerful.
The answer is quite simple: as rotten as the likes of Berlusconi and Trump may be, the folks on the opposite side (e.g. Hillary) are simply just as rotten and despicable.
As a voter you are then left with a choice of rotten or rotten ... their despicability sort of cancels out, and your choice then hinges on their secondary characteristics such as : are they right or left leaning.
I'd like to understand why this is such a foolproof road for many politicians. It must be ingrained in us as a species. This comedy sketch comes to mind: https://www.youtube.com/watch?v=h3zNLfmDm-0 (warning: crude humor)
Being in charge of making the law helps, but charisma and propaganda gets you in that position in the first place.
https://www.theguardian.com/world/2023/jun/12/berlusconi-dea...
Berlusconi was the pioneer of modern populism, of all of it. Corruption, embezzlement, buying up or otherwise controlling media for manipulating or influencing coverage, being involved in so many scandals that it became completely impossible to track their progress or to discuss/demand consequences... you name it, Berlusconi invented it.
(Presumably) having sex with (close to) underage women and girls and having extramarital affairs in general was just the cherry on the cake (the Bunga Bunga affair).
[1] https://en.wikipedia.org/wiki/Silvio_Berlusconi_prostitution...