There are small towns like Corvallis, Oregon that do this because there's a need for transport around the university. The rest of the ridership might be mainly disabled/elderly who wouldn't pay much anyway. So the cost of administering a ticketing system isn't worth the revenue. Basically systems that don't have working commuters.
https://www.corvallisoregon.gov/cts