I can feel my right testicle moving towards my groin and it is painless. What could be the cause?

My right testicle moves up towards the groin after masturbating. What could be the cause?