If you are from a country which requires visa to enter Canada, you obviously would have gotten a trv of type S1 (being student) stamped on your passport.
Study or work permit is authorization to study or work in Canada, not to enter or exit it.
However, it is not needed for people belonging to countries which are visa exempt.