Section 1. A person whose beasts have been distrained or impounded in order to recover a penalty or forfeiture supposed to have been incurred by their going at large or to obtain satisfaction for damages alleged to have been done by them may cause them to be replevied.