There was nothing inherent to the lighthouse that made it a public good. It became a public good because government regulation made it so.
America was not made richer from slavery. America was made poorer by slavery.
The road not taken by Cuba, that of not having the revolution, is one on which the country would have been healthier and richer than it is now.