It was a take home exam.
The purpose is not to encourage less-than-sufficient studying or other preparation. E.g. "Oh it's take home so we can just cheat!", Or somehow deluding oneself into thinking the cheating is endorsed.
Examinations will just be more tightly locked down if some students continue to abuse the system.