OTTAWA—Canada largely avoided the doldrums that afflicted other advanced economies last year amid a global slowdown. Immigration is a big reason why.

Economic growth over the long term generally has two sources: an expanding workforce and advances in productivity, or output per hour worked. When more people are employed, they produce more goods and provide more services, earn more and spend more, creating demand for more workers.

...