Deadheading refers to movement of crew for operational purposes.
It seems like what you saw was a flight attendant simply using his or her flight benefits to go on vacation.
He or she was probably listed for the jumpseat to have priority in case the flight was full. I’m not sure how delta prioritizes non rev flight attendants for taking the jumpseat, but a lot of airlines do it on a first request basis.