The casino knows all your personal data from your payment service provider. Just like when you make a transfer to someone, the receiving bank knows your name when you make the deposit.