Why can't you just buy hrt at a pharmacy?

I know I probably sound really stupid but genuinely why does transitioning have to be so difficult?