The idea of living in lava tubes has been suggested for their potential to provide increased protection from radiation, temperature fluctuation, Martian sunlight, etc. An advantage of living underground is that it avoids the need to create a radiation shield above ground.
People were forced to live in underground homes because the sun, which had provided them with sustenance, had turned hostile. It changed only slightly, but the change was sufficient to upset the balance of nature on the planet.