I understand we can do this with file input and output, but why would we want to do this?
It is simply called persistence.
In that sense serialization is a (poor) version of database storage.
But of course, that comment is correct: this does not prevent the creation of objects. It is a mechanism to resurrect previous state into "new" objects.