Why can't you legally drive over 100 mph when you know you'd do it safely?
Why can't you own certain kinds of weapons when you know you don't want to kill anyone or yourself?
Gamblers going bankrupt is bad for all of us because they often have families and creditors who are harmed by the loss of the money, and the rest of us pay the price in the form of welfare, loss wages, etc.