6th commandment btw doesn't differentiate between people and animals.
"Under Jewish law, animals have some of the same rights as humans do. Animals rest on Shabbat, as humans do (Ex. 20:10). We are forbidden to muzzle an ox to prevent it from eating while it is working in the field (Deut. 25:4), just as we must allow human workers to eat from the produce they are harvesting (Deut. 23:25-26). Animals can partake of the produce from fields lying fallow during the sabbatical year (Ex. 23:11).
Several commandments demonstrate concern for the physical or psychological suffering of animals. We may not plow a field using animals of different species (Deut. 22:10), because this would be a hardship to the animals. We are required to relieve an animal of its burden, even if we do not like its owner, do not know its owner, or even if it is ownerless (Ex. 23:5; Deut. 22:4). We are not permitted to kill an animal in the same day as its young (Lev. 22:28), and are specifically commanded to send away a mother bird when taking the eggs (Deut 22:6-7), because of the psychological distress this would cause the animal. In fact, the Torah specifically says that a person who sends away the mother bird will be rewarded with long life, precisely the same reward that is given for honoring mother and father (Ex. 20:12; Deut. 5:16), and indeed for observing the whole Torah (Deut. 4:40). This should give some indication of the importance of this law.
We are permitted to violate Shabbat to a limited extent to rescue an animal in pain or at risk of death. For example, we can move them if they are in pain, move objects that we would not otherwise be permitted to touch to relieve their pain, we may give them medicine, and we may ask non-Jews to do things that would violate Shabbat to help a suffering animal.
In the Talmud, the rabbis further dictated that a person may not purchase an animal unless he has made provisions to feed it, and a person must feed his animals before he feeds himself (interpreting Deut. 11:15). "
more,
Judaism 101 Treatment of Animals