One of the main reasons for having a system of laws is to make sure that citizens can feel safe and secure. Knowing that there are penalties for actions that put others at risk will often prevent people from behaving dangerously and will make others feel more confident in their safety.