Factors I can think of:
1. Bigger mirror = better. Enclosing a mirror requires mass and volume, limiting mirror size.
2. The L2 orbit is unstable. Far less risk of being hit by debris than low Earth orbit.
3. Webb's sun shield blocks the primary light pollution angle. Hubble would need more protection from all angles due to the Sun, Earth, and Moon.