The reason your tongue is burning from eating pineapple is due to the enzyme that the pineapple contains called bromelain.
The bromelain is a plant protease enzyme that breaks down protein and it's also used as a natural meat tenderizer.
Some peoples tongues are more sensitive to the enzyme bromelain than others so some people might experience tongue burning from eating pineapples while others may not.