I think the biggest reason he didn't raise is because he didn't get any set value out of the hand in case he was behind (had he raised), and he has just enough of a stack that he can force you off of whiffs.
The Dunning–Kruger effect is a cognitive bias in which unskilled individuals suffer from illusory superiority, mistakenly rating their ability much higher than average. This bias is attributed to a metacognitive inability of the unskilled to recognize their mistakes