As per Hinduism cows and elephants are seen closest to humans as an identity. They are aware of existence of God thats why they are respected. Cows are claimed to be as a last jooni out of 84 lakh before you get a human body. So killing cow is equivalent to killing human being spiritually.