State law requires that you show your ID to prove that you’re 21 before you can enter a betting establishment. That’s why the online sportsbooks require you to be physically inside the casino to register.
The betting site may also ask for documentation, such as a photo of your ID, to confirm your identity before you make a withdrawal. This is to ensure that they’re sending your winnings to the right person.