Unfortunately for Harry, and unbeknownst to him and everyone else, Barty Crouch Jr.’s charm work didn’t turn out quite the way it was supposed to. Such is the risk of attempting to alter old, magically powerful, and semi-sentient objects; one can never tell exactly how the modifications will interact with the innate magic.