The main problem being solved by the Hubble Space Telescope is cutting through a thick atmosphere to photograph stars.
Ground-based telescopes face challenges due to the Earth's atmosphere, which can distort the light from stars and other celestial objects. Hubble, being in space, is above the atmosphere, allowing it to capture clearer and more detailed images without atmospheric interference.