All witnesses shall be privileged from arrest in all cases except treason, felony, or breach of the peace during their attendance on any court where their attendance is required by subpoena, and going to and returning from the place where they may be required to appear to testify, allowing one (1) day for every twenty-five (25) miles from their residence.