It was all accidental, though.

He just wanted to show people his pet Basilisk.