All the 15000 payphones in Australia are free and have WiFi. https://www.telstra.com.au/consumer-advice/payphones
They are probably kicking themselves for ripping out so many phones in the past, thus giving up the locations.
https://www.infrastructure.gov.au/media-technology-communica...
The money comes from a levy on telecommunications carriers (Telstra included, but also most of it's competitors). There was a bit of conjecture in the media that the "free" payphones were really being paid for by the other telcos, once the money Telstra contributes is discounted.