You seem to have independently discovered the market failure commonly know as the Free-rider problem, for which there are many solutions, and which is not a dispositive preemptive argument against the establishment or management of common good(s).
For example, Elinor Ostrom won a Nobel Prize for her work illuminating design principles illustrated by long enduring common pool resource institutions.
https://en.wikipedia.org/wiki/Elinor_Ostrom#%22Design_princi...