Walking under a ladder is dangerous, mostly for whoever is on the ladder, so in our culture we attach supersition (bad luck) in order to engage the self-interest of people who are not considerate or aware of the danger they might create by doing so.
Where else is luck used as a cultural device for codifying behaviour?