Amplifying, the bank is also spending money to service your account. There's also the issue of how much your money is worth to the bank: demand deposits where it can all be withdrawn without notice are worth less than forms which lock it up for a while.