Trousers come in pairs because they were originally comprised of two fabric tubes called "trews" that laced together in the middle from front to back to form a single garment. This lacing could be untied to allow for various bodily functions!
P.S.This is why some people call trousers, "bags" as they were once, in effect, two bags joined together.