Wider pans have a greater surface area, and when sliced onions have more contact with a hot surface, their moisture evaporates better and they caramelize faster.
Using a pan with sides that are too high may also prevent water from evaporating efficiently. Generally speaking, a 12-inch skillet can accommodate two large onions.