Birds don’t have receptors for capsaicin, the chemical that makes peppers hot. They could chow a bag of Moruga Scorpions with zero effect.
Evolution’s idea being, birds will swallow the seeds whole, poop them all around. Mammals will chew them up and destroy the seeds, so they evolved a defense specifically against us.