Generally, the legal age for sports betting and other casino gambling is 21, with activities such as the lottery, daily fantasy sports and horse betting commonly allowed at 18. However, there are many exceptions. 21+.
It's the law. Gaming jurisdictions and the federal government write laws based on gaming; some laws state that minors are not allowed to game and/or are not allowed in gaming areas. Similar laws are written for medications and alcohol.