Curls and Tendons Question

Um, doing hammer curls REALLY hurts the inside of my elbow (the tendons I believe) whilst “palms up” or regular don’t result it any pain in the area.

What’s the mechanical/physio explanation for this? I don’t quite get it.

Would be extremely grateful.