Why is sanction for prosecution needed

Explore the significance of requiring sanction for prosecution in legal matters.