Why do we need to change the directory to boot a replica set node in standalone mode?

In section: " Lecture: Fixing Missing Indexes, Part 4"

If we change the directory of the node and its port while removing the --replicateset option:

when it boots up, it will create new default DB’s in the new location. How can we then open the existing DB and create index for it??