Could be indirectly inheriting the debt. They could’ve taken out a new/second mortgage to cover their gambling debts, for example. Sure, the kid could refuse the inheritance to avoid being stuck with that, but then they’re still out a house they otherwise would’ve had if not for their parents debts.
They’ll be filing for bankruptcy within a decade tops, anyways.