That is not a ratchet wrench. Judging by its diminutive size and gouges in the business end of it, that is a Navy hammer, designated as a SFH.
No need for the Navy to keep those clean, or out of the salt air to serve its intended purpose, thus the locked up condition in which it was found.