Very true but not in all cases. In case of speed limit intent does not matter; "I didn't know I was speeding" is no excuse. Same with DUI.
In fact DUI should be a mitigating circumstance, because when you're drunk your ability to make decisions is impaired -- but the opposite happens, DUI is an aggravating circumstance.
Ideally, for a lot of things we want to punish people who knowingly do bad stuff, not people who do bad stuff because they thought it was good.