Surely, if you're standing, most of the weight is on your downward-pedalling foot. Get the weight to one side and you'll fall off, so it doesn't really seem possible that people honk without leaning the bike. You have to lean the bike, so that the pedal is above the centre-line of the bike.
In practice it will be a bit more complex than that, but that seems like the principle.