The State may require services of persons, with or without compensation: In military duty; in jury duty; as witnesses; as town officers; in highway labor; in maintaining the public peace; in enforcing the service of process; in protecting life and property from fire, pestilence, wreck, and flood; and in other cases provided by statute.