short answer: there is an enzyme in pineapple called Bromelain (Bro-mer-lan) that break peptide bonds in amino acid. Recall that the chain of amino acid with peptide bonds is protein.
So the Bromelain enzyme will break down protein by separating peptide bond.