When it comes to slapping your female friends bum?

My guy friend is always slapping my butt, it's funny yes but why? I'd have more understanding in a relationship but with a friend it's just awkward
When it comes to slapping your female friends bum?
Post Opinion