The purpose of this article is to recognize a public obligation to the marshal and constable, whose duties expose them to more than ordinary risk and this article is designed to provide an additional element of compensation in consideration for the duties performed by such persons.