This.
Also applies to the eyes sort of, as tilting the head offers a different axis for the stereo vision to try to make sense of whatever it’s looking at.
IIRC, animals often do this movement instinctually when they’re puzzled by something because the additional sensory information could be helpful.
I’ve seen this guy in a virgin vs. chad meme and now here. Who are they?