Families don’t print the currency they owe their debt in, they don’t owe the their debt to themselves, and they also aren’t the largest employer and consumer in their economy, so the comparison doesn’t work.
Middle school economics is a simplified model that children can understand, but just like Newtonian physics, middle economics becomes less useful past a certain scale.