In France at least internships are nearly 6 months long. It's nowhere near as long as a normal project length but still, it's quite a bit.
On the project aspect, it doesn't have to be done this way. Contributing to existing project is totally feasible. One could contribute a plugin to PeerTube, a patch to the Linux kernel, etc. Sure one can start from scratch, and maybe in some cases it's better (maybe less fear) but I think it's rare to be an actual requirement from teachers.