Like nearly all Buddhist teachings, there are practices you can do to develop these faculties. For example, you can reflect that all beings have at one time or another been your mother, or your child; realizing this, how can you feel hatred towards any other being?
It doesn't work for me, of course; I don't believe in rebirth.
It doesn't work for me, of course; I don't believe in rebirth.