The vitamins and minerals in pineapple help shorten the duration of viral and bacterial infections and strengthen your bones. There's also research that pineapple can help prevent cancer and even aid fertility by improving sperm quality. In some cultures, pineapple is a medicinal plant. This is because it has a substance called bromelain that can reduce inflammation.