There was one additional reason why city wanted to create a free public transportation only for local residents. So that all the people who were working in Tallinn, but whose(?) place of residence was outside of city, would register themselves as Tallinn's official residents, and that means more tax payer money coming to city budget. Win-win.
Edit: improved spelling