Online casinos follow strict rules and of them is user identification. This is used to prevent fraud or money laundering for example.