I think the hook on the end of it prevents sliding to the right, the lock being where it is prevents rotating the handle away from the door which would allow it to slide.
Or the lock is keeping a flat piece from rotating out of the way.
But I'm really guessing.
Edit - I'm pretty sure the rod is intended to rotate since there's a curved notch in the plate just above the padlock