Dogs hold long been well-liked mascots in the United States sea services for their ability to build morale. In the early days,dogs often served a more practical function by leading patrols onto foreign shoresto search for food and warn of any dangers lurking out of eyesight. But mostly, dogs provided welcome relief from the monotony of being at sea for months on terminate.
Source: navalhistory.org