Really not sure but that is not the type of pump used for waste water.
The possibilities I see are fresh water, bilge, or A/C.
Have you tried tracing the black hose to see where it goes. Many black hoses on a boat.
You did not answer my question if you have A/C or not.
1997 2400 SCR
5.7 Vortec / Bravo 2