Interval Inversions
A bare interval - just two notes - has an inversion, and it's really about distance: whatever's left over after subtracting the interval from a full octave.
Why inverted intervals sound like relatives
An interval and its inversion always add up to a full octave, 12 semitones: 1 + 11, 2 + 10, 5 + 7. The names are entirely different, yet the 2 sound like close relatives. The wheel doesn't care which direction you travel around it, only how far - so the short way around is exactly the same distance for both members of the pair. That's the same interval class from Color Coding showing up again: a minor second and a major seventh get the same color on the wheel because they're the same distance, just going the short way around versus the long way around.
The interval classes
Each pair below starts from the same C. Six of the seven interval classes pair up this way; the tritone is a special case where it is its own inversion, and 6 + 6 = 12.