Deterrence. Motivation for all the other drivers to pay attention and keep control of their cars at all times. Legislation alone can't stop pedestrian deaths, drivers must change their behavior.
Note the precedence of the $5000 fine before the 25 years of jail time. Clearly the Michigan DOT thinks that fines and jail time are necessary incentives to not kill or harm construction workers.