Hard to say exactly. Maybe the bird was attracted by something outside and the man wasn't able to stop it. Or it could have been a case of the bird finding a way to get out on its own and getting lost in the process.
Well, it could be that the bird got spooked by something and escaped. Or maybe the man accidentally let it out and couldn't find it again. Who knows for sure?