They protect rights. They protect humans from harm, they exist to make living peaceful.

But I've never seen a moral code (besides progressivism and feminism, of course) that protects feelings. Why? Because even in ancient times, men recognized that sometimes the best thing a person needs is a spoonful of truth. We need a moral system based on truth and mutual benefit, not one based on feelings and one-way benefit.