It's easy to pick holes in riding as observers but oh boy does it happen to everyone....sometimes you get away with it, sometimes you do not!
Target fixation is so very easily done, even for experienced riders, the experience comes in drilling yourself into recognising mistakes as you make them and trying to resolve before it all goes wrong.
I've gone into corners too hot and had to tell myself in my head to tip in, keep it smooth and look where I want to go...not at the outside of the corner.
Sometimes mental blocks stop you doing what you know you should, those nagging fears in the back of your mind which mess up what you should be doing. I can do it in the wet for example, taking a bend and see greasy drain covers, your fears can take over (in this case grip concerns) and you are looking in the wrong place, chopping the throttle, standing the bike up instead of keeping it on line etc etc!
I've almost stuffed it into the outside bend on a left hander in Europe, double apex in a tunnel caught me out and I fixated on the wall. Told myself in my head "Look where you want to go you bell!" and didn't run wide. Could have easily gone the other way. It's why I fell the "never ride at 10/10ths" rule for the road is so important, you need margin for error for when you sod it all up! (And you will sod something up!)