Almost certainly because the handle isn't going up as far as it should. Our french doors are notorious for this, sometimes allowing the handle to lock properly, and at other times just jibbing. The door may need adjusting to allow the hooks and dogs to register properly. Sometimes a good heave clicks the thing in place. Then the key will lock the door properly.
LaurieJB, November 2017