But if the ox were wont to push with his horn in time past, and it hath been testified to his owner, and he hath not kept him in, but that he hath killed a man or a woman; the ox shall be stoned, and his owner also shall be put to death. – Exodus 21:29
It’s not just what happens that matters, but also what was happening when it happened that matters.
God sees and cares about your context. And He takes it all into account…because it matters to Him, even if it doesn’t to anyone else.