against all logic

idiom

Definition of against all logic

: despite the logical or sensible thing to do She kept the dog, against all logic, after it attacked her.