If you intend to retire in Canada, you need to apply for permanent residency. This process is slightly more difficult if you are no longer working. The Canadian government looks at your ability to support yourself in your retirement.
Ways to improve your score if you:
Speak fluent English or French;
Graduate with a university degree;
Demonstrate that you have enough savings to support yourself and your family;
Have a partner who has a university degree; and/or
Are willing to invest in Canadian businesses
These are all ways to improve your chances of a successful application as a retired applicant.