Have you considered pesticides?
I used to react to shop bought pineapple.
So I avoided it although love it.
When I ate freshly picked pineapple from a wild tree in Mauritius it was just delicious and no reactions.
Who knows what they treat the fruit with that we get served?