Or let say that a cab driver see a child who missed the buss back home. However, the cab drivers contract says he is not allowed to pick up passages who can't pay. Without the drive back home, the child need to walk several miles.
This is what people call moral dilemmas. To help a child, or to follow the contract.