But today there are other options. Starlink, for one.
But it was not profitable for them to expand normally. They can't offer drastically cheaper service than Comcast, the installation costs in cities are huge. I also have Starlink as a backup, and it's even slower than Comcast.
So yeah, government actually works better than commercial companies for most infrastructural needs. And in particular, municipal broadband is usually head-and-shoulders better than anything from large commercial companies. It has higher consumer satisfaction ratings and is cheaper on average.