That even though Hypnosis (Psychic) works on Dark types, which have a Psychic immunity..
And Confuse Ray (Ghost) works on Normal types, which have a Ghost immunity..
Thunder Wave doesn't work on Ground types.
All three are non-attacking, status moves, so why can Hypnosis and Confuse Ray...