Birds don't hate chili. Indeed, chili fruits have evolved to be attractive to birds so as to have their seeds widely dispersed by them after passage (unchewed, as birds don't have teeth) through the bird's gut. At the same time, chili fruits have evolved to be unattractive to most mammals by incorporating capsaicin which 'burns' (irritates) mammals but has no effect on birds.