there’s method in someone’s madness - definition and synonyms

phrase informal
  1. used for saying that although someone seems to be doing something in a strange way, there is a good reason for doing it that way
See also main entry: method