Deductions & credits

Hello,

I am no longer on company medical but I still have HSA account.  This year I put a sum into the HSA bank to cover my medical.  When I filled out my tax form I was charged tax on the amount that I put into my account.  I just want to know why I am being taxed on those funds that were paid on post tax money?