means that
a neighbour's good fortune need not be a loss to oneself and may bring shared benefits to the community.
also
What a friend gets is not lost
For example, when a person near to you has a good fortune, you should be pleased; you might be lucky as well and have some of this good fortune. This is a situation where “What a neighbour gets is not lost” applies.