You accumulate experience and wisdom and pain and one day, someone tells you that you seem to have it all figured out and you go 'Oh. I didn't realise. When did this happen?'
Your 'mind' is the post-facto explainer for what the meat-zombie automaton just happened to do. Sweet dreams.