Why do banks have different interest rates?

Banks offer different interest rates to attract funds they can then lend out, and also to satisfy the bank regulator…