It's just the way the child's mind works.
I worked with a guy like that.
The guy was quite smart but he got problem solving backwards.
He would have a problem and take action first and then think about it second.
I thought it was an odd way to go through life.