One of the precepts of Jewish religious law is that "the law of the land is the law." There is also the concept that if you are on the way to do a mitzvah (a righteous act aka a good deed) and are prevent from doing so, it is as if you had completed the task. While observant Jews pray at certain times of the day, it seems this gentleman put his own piety first.