Well, a bank is not usually producing the money itself.
It appears you need to study more on the topic of partial reserve banking. While there are boundaries and conditions, banks do indeed create money out of nothing. It happens (almost) every time they make a loan.