It's only a practical joke if the recipient can take it. I bet you know several people who's lives have been a misery because they have been the butt of people's jokes. There's usual one on every squadron / unit.
For most people who are on the receiving end its character building, but one or two slip through.
Not that I'm squeeky clean of course but I console myself in that I can take what I give. Besides banter is generally good for moral and most places of work are better for it.