You searched for: “counterphobia
counterphobia (s) (noun), counterphobias (pl)
A strong desire to find out what causes fears or anxieties instead of avoiding them: Dr. Smart pointed out to Jack that he was affected by counterphobia since he has decided to take up mountain climbing in an attempt to overcome his horror of heights.