Most examples boil down to common sense. Nobody is going to arrest a 14 year old for driving their dying parent to the hospital.
Similarly, it is reprehensible but legal to pull up a chair and watch a child drown in a pool.
There is a difference between law and morality, and humans will use the second to selectively enforce the former.
In which country? Even for the US I don't believe the law system is that crappy.
In the case of a child in a pool, the difference is a matter of degree. What if I am terrified of water myself? Does that justify my inaction? What if I just "froze", which is common in stressful situations. Does anything justify not doing something?
For example, how fast can I drive to get to a telephone if I don't carry one or otherwise cannot use it?
It's not anything nefarious like that. US citizens and US law enforcement tend to have an adversarial relationship, unfortunately. Finns generally do not. That law is an expression of expectation for behavior in a civilized society, not an opportunity for prosecutorial promotion, as it might be in the US. One must take reasonable steps to save a drowning child, including calling police. In practice, only the most egregiously callous psychopathic misbehavior is punished. Honestly, who doesn't think that a person shouldn't be in jail who would prefer to film and giggle while a child was drowning? A person like that needs a timeout at least.
The difference is that jail in the US is not "timeout". Prisoners may be required to work against their will, which is the carve out in the fourteenth amendment which abolished slavery. People openly joke about sexual assault in prison with derogatory comments like "don't drop the soap". All in all, I think the bar should be higher to send someone to prison in the US. We already have too many people in prison and, in my opinion, many of them are wrongly in prison.