Throughout the "war to end all wars," cats were a common sight in the trenches and aboard ships, where they hunted mice and rats. Beyond their "official" duties, they were also embraced as mascots and pets by the soldiers and sailors with whom they served. (
Source)