It all depends on the country's social security policy. In our country, both employees from the private sector and government sector may be granted retirement pensions if they contribute a certain amount to the social security system. You can do this as an employed, self-employed, or voluntary contributor. For employed persons, it's mandatory for employers to pay for their share in the employees' premium. You need to have at least 10 years of contributions to be entitled to monthly pensions. If the total contributions do not reach the minimum number of years upon reaching the age of 60, the retiree can claim the lumpsum contributions or continue paying the premiums until the required payment period is reached. Thus, even self-employed people or those who are earning online strive to pay their monthly premiums voluntarily to accumulate funds for their future pensions.