I haven’t encountered this yet and am unsure what to call out on it. Was this a canceled installation or is it fine? There are no fixtures nearby to use it to drain into.
My guess would be a washing machine.
It was likely used by a washing machine or water softener. Or something else that needed an indirect connection to the drain system. This type of arrangement is commonly referred to as a “stand pipe.”
Below is my narrative for abandoned or seldom used drains…
How old is the building? I see cast iron hub and spigot waste piping.
I am going to say I was used as a vent prior repairs or restoration, if any. Even the label states waste & vent…
Anything declared?
Observation. Drain pipe repairs in the basement. Open vertical waste/vent pipe and trap.
One use for that pipe is to insert a sewer jetter for cleaning the main sewer line prior to camera scoping.
Is the home on Sewer or Septic?
It is a septic system and they don’t know why it was there. I believe the previous owner didn’t provide the information.
Okay, so this would be normal to have installed?
IMO, it’s not a concern to have installed… with the exception of it not being capped off.
With no appliance/fixture draining into it, there is nothing to keep the Trap water seal intact… (except for any waste/sewage backing up)… which is perhaps why it is there… septic tank keeps backing up, and nobody wants to deal with spillage when opening the cleanout!!
It’s a standpipe. Previously installed water softener or washing machine. Just tell them to cap it off and move on, no big deal.
^^^ That (or its for a dehum, or ice maker, or red-neck urinal…)
Washing machine drain pipe or a sump pump (fresh water) drain line termination point.

