It would be a mistake to view a lighthouse as a public good.
What is a public good?
This is a good that is provided for the citizens of a country. A public good is one that has non excludability and non rivalry.
A lighthouse is not a government property that should be within reach for the citizens of a country.
Read more on public goods here: https://brainacademy.pro/question/24825090