Residency is permission from a government to live inside its borders for longer than a tourist stamp allows. It isn't citizenship, and it isn't a passport. It's a permit, renewed on a cycle, that gives you the legal right to be somewhere and usually the right to bank, rent, and enroll your family in school and healthcare plans.
Nearly every country issues it in the same sequence. You arrive on a temporary permit, valid for 1-5 years, conditional on whatever qualified you. You renew. And after a set number of years you become eligible for permanent residency, which ends the renewal cycle and usually removes work restrictions. After a further period, if the country allows it, you can apply to naturalize as a citizen.
Where that sequence starts and how long each step takes is the largest difference between one program and the next. Two countries can both sell you a residence permit for a quarter of a million dollars and put you three years apart from a passport.