“If it was just a humanitarian law for the ox, the law is clearly at odds with its context. However, if it is a law dealing with the economic responsibility of someone using someone else’s property, the law fits nicely in the context.” In other words, Deuteronomy 25:4
in context is not fundamentally a law about how to treat animals humanely but rather a law about how to treat properly treat the property you are borrowing or renting from someone. Seen in this light, v. 4 fits the original context quite well. Otherwise the verse is an anomaly which seems to stand out.