He'd won a bet.
A slap bet.
Which is a bet whereby the winner is allowed to slap the loser at any point in the future.
And in this case? The winner was the bridegroom - and he decided to collect his bet in the middle of his wedding service.
(Via 22 Words)