My city has a few old golf courses, but they were literally built before the surrounding areas eventually got developed. I suspect a lot of the golf courses you’re talking about originally were on the outskirts of populated areas, until population expanded past them. At that point, they might not want to move.