Lottery came to the United States with British colonists and helped finance the revolution that made them Americans. It survived the once-rabid popularity of horse betting and the inevitable side wagering on the pastimes these new Americans created, like baseball and football.
https://www.lotteryusa.com/opinion/lottery-modern-gambling-landscape