Retirement tax questions

I also noticed this when doing my taxes last year.  So if the City is taxing on earned income and not "received" income, doesn't that mean that when I then start taking retirement that my contributions are being taxed twice?  I was under the impression that they couldn't tax the same dollar more than once.  Any perspective would be appreciated.