Hi,
You can study at any age. But going to university does not extend the residence permit status. Apprenticeships do so because they are linked to a certain profession and the idea is that you will work in that field later on. Studies, in contrast, are too unspecific and are not leading directly to a particular job.