Why do I have a reaction to raw fruit but not the cooked same fruit?

Allergen altered. Cooking alters the conformation of the proteins which are causing your reaction and renders them non allergenic. Sometimes it works the opposite way when patients are allergic to cooked and not raw food.