It could also be classified as an insurance premium, but a government mandating it is the key characteristic of a tax.
But the fact that the government reduces the annuity amount by increasing retirement age and benefit purchasing power means it is not insurance either.