There is a difference - the money that’s stored in the bank is not just sitting there. It is lent out with an interest to people who need to borrow money and earns the bank an income. The banks want your deposits because it lets them earn money. To compete with one another they offer interest bearing deposit accounts.