You don't have to pay taxes nor social security for 20+ years in order to become a citizen in very many countries. You can live on benefits before becoming a citizen and after becoming a citizen. Usually the requirement is that you are a resident for a set number of years in order to become a citizen.