It’s called a pair of pants because each pant leg used to be one separate item of clothing, and was belted in the middle. When they became one garment, I guess calling it a “pair” stuck out of habit.