Why?! They never used to so why now? Student accommodation is meant for 1st year. Not for the full degree. Also how would you go about enforcing such a stupid fucking law?
The housing crisis is primarily the result of decades of underinvestment in social housing and developers hoarding land and not building.