From hidden planets to invisible cosmic signals, some of the most important astronomical discoveries happened while scientists were chasing something else entirely.