Where I live the municipal courses are actually a part of our water retention and drainage systems that are provided at cost (or discounted cost, sometimes free) to members of the community.
Basically we found a good way to create green spaces for recreation out of flood plains and drainage ditches. During heavy rain they provide important buffers that protect the nearby homes from flooding, and reduce the urban heat sink effect.
That's not true everywhere but keep it in mind before making sweeping statements about golf courses. Some people like golf. It's fine if you don't.
yes and new developments/ cities are doing a much better job balancing this in most cases. Golf courses are a great use for flood plains and overflow regions.