It's a way to get population to a place that either cannot support a lot of people or is very expensive to build a colony on, say, like Venus. If the colony cost is larger than 5-6, orbital habitats are cheaper to build than infrastructure on the surface. There are planets that are so hostile that terraforming is not feasible, so habitats are the way to go.