The "child" is not remembering anything. This is just a basic concept that processes are started from their current working directory (cwd). If you look at /proc/* on a Linux-system you can see that entry for every process.