Borrowing money to solve some problems isn’t bad, but borrowing money to gamble is really bad.
I fully agree with you, the ones who borrow money to solve some of their financial issues or to buy some food for their family is good use of borrowing but it's not good at all to borrow money for gambling.
If someone becomes an addict then in most cases no one lend money to such people but if still somehow they get success in borrowing money then it would be problematic for both the borrower who gambles it away, and for the lender who might not get his/her money back.