This article is a decade old, but I believe that Tesla actually pays the upfront costs:
https://techcrunch.com/2013/07/26/inside-teslas-supercharger-partner-program-the-costs-and-commitments-of-electrifying-road-transport/
I remember looking into putting some at my law firm's building, but it didn't work because we would lose parking spots and we didn't get any financial benefit (law firms don't usually get walk-in clients). But the out of pocket was essentially zero to us IIRC. If your business model was something like restaurant, and you can make money off the people waiting and all you give up is parking spots you already have, it seems to make sense.
And yes, I get the Tesla hate. But their charing ports (NACS) is the industry standard going forward, so letting them do the permitting/install/maintenance/etc. to attract customers is a no-brainer.