Gambling is just like smoking or drinking alcohol. The individual who participates in it may lose his money and health. But at the same time, these activities contribute huge amounts of money to the government coffers.
Yeah, gambling its perceived negatively because its an addiction and it can be very hard to come off it. Also, in most cases individuals can't stop themselves and end in very bad situations like selling even people dear to them, never mind selling their home.