Green’s Dictionary of Slang

who let you out? phr.

[one has been released from an asylum]

a deliberately deflating response to someone who is behaving far too self-confidently.

[Ire]P.W. Joyce Eng. As We Speak It In Ireland (1979) 188: Who let you out? – an ironical expression of fun: as much to say that he must have been confined in an asylum as a confirmed fool.