Many countries (and/or subdivisions thereof) have social insurance systems that require payment of taxes for retirement annuities and medical coverage for retirees.
Where the employees are required to pay the tax, it is generally withheld from the payment of wages and paid by the employer to the government.