Online casinos need to check your identity to make sure that you are above 18. As well as for anti-money laundering and fraud checks. If a casino breaches this requirement they could end up losing their UK gambling licence.