Period problems

I just tried my first tampon and it didn’t hurt to put in but why does it hurt to take out?? Please I want to know..