Isn‘t this an example for something that will pay off later? Public baths come to mind. Those generally don‘t make sense from an economic point of view and are prohibitively expensive for private owners to build and maintain.
But they pay off by keeping society clean and healthy and prevent loss of workforce from mental or physical disease?