Why is seven deuce the worst hand?

I’m very very new to poker, like I barely know the rules, but I was wondering why 2/7 is the worst hand, because I thought it was simply the lower the number the worst it is. I would understand why it isn’t 2/2 because that’s a pair but why wouldn’t the worst hand be 2/3?