It brings to light subconscious desire. The idiot princess was interested in MC after he defeated the treant.
This story is very choppy though. It reads like we’re missing 30% of the panels. But it’s satisfying that MC is genuinely pissed at the princess for trying to kill his GF.