Why did the casino demand my ID (everyone's ID) when entering?

When I was in my late teens, in the early 1980s, I worked at a Target that was across the big parking lot from a restaurant that had a bar that didn’t card - until a cocktail waitress who also worked as a substitute teacher recognized some boys who came in after Target closed, and vice versa.