Why is there a positive risk-free interest rate? I've been told that the interest rate is the price needed to be willing to take on the risk associated with lending. This is why personal loans have higher interest rates than bank deposits, for example. So why is there a positive (as opposed to zero) risk-free rate? It is usually assumed that government bonds are risk-free, yet they have a positive return. If there is no risk, how can there be a positive rate?
The interest rate is (1) the price needed to take on risk and (2) the price needed to delay consumption.

The reason there is a positive risk free rate, even though there is no risk, is because of the time preference typical of any economic agent. It is preferable to consume today, than to consume tomorrow. To put off consumption today and invest in the risk free asset instead, the agents want to earn interest, otherwise they will consume instead of saving.

Normally, if the risk free rate was zero, nobody would buy the risk free asset, but spend everything on consumption. E.g. nobody would buy government bonds. The government has to offer a positive interest rate to find buyers.

Current negative interest rates are actually a reflection of how our classical assumption, that agents prefer to consume today rather than tomorrow, has been turned on its head. Nobody wants to consume today despite zero or negative interest rates contrary to the classic theory above (and people buy government bonds with negative interest rates). This can happen if agents are apprehensive enough of the future to want to increase their precautionary savings instead of consuming. If they are worried enough, they will do this even if they lose money on their savings (due to the negative interest rate).