Assuming society continues onward, it doesn't really need to be fully repaid. The value is in the organization and structure of society. However, war, environmental catastrophes, population decline, and loss of trust between citizens of a nation can cause a decrease in the predictability of actions and consequences in society, and that would be a problem for any debt issued with rosier assumptions.