Why when i dunk a basketball, the ball always get blocked by the rim?

and why cant i jump as high with a basketball in my hand?