Human beings feel various emotions and have been programmed genetically to feel for and connect with people. Emotions have had a survival function since the times we were hunter gatherers. Man had threats to survival while he used to depend on hunting and wild vegetation for food. There were problems associated with birth, battle, death, and attracting a mate, throughout evolutionary history, and emotions have evolved to aid humans in adapting to those problems rapidly and with minimal conscious thought.
If we did not have emotions, we could not make rapid decisions concerning our existence. Depending on how we felt, we would decide whether to attack, defend, flee, care for others, reject food, or approach something useful, all of which helped us to survive.