If they do it only at public events where they're constantly being photographed in groups of people, it's smart image control. A leader is a symbol, and different height differences project different messages visually. That doesn't mean you need to be the tallest, but being the shortest in every photo may give voters a perception that works against you. It's not vanity; it's reality.
Actors stand on apple boxes all the time in film and TV shows, because the director wants a specific height difference between characters to arrange a shot just right, that isn't the actual actors' height difference. Not lame insecurity -- it's producing the image that communicates what you want.