Because the benefit of the public restrooms would extend to all private buildings in the area, but the cost would fall entirely on whichever sucker decided to pay for them -- and no one wants to be that sucker. That's why public funding is required to pay for public goods. This is basic economics.