Most likely you have Windows default service active which brings up mongod on default port 27017 and localhost on reboot
What you started is a service from command line but is it configured for autostart?
You can check your current mongod service in taskmanager.Does it match with your manually started service?