The idea seems obvious, really.
Giant squids are well known rapists of schoolgirls, but they kill them when they rape them, so why not rape a large building like Hogwarts? The squid can come back for more whenever it wants too, it is only located like a mile at best away, and the castle is not going anywhere!