The precise details vary from casino to casino, but the main idea is that the casino gives you, the player, comp points when you place real-money wagers on the games. They might also award you free comp points as part of a bonus or promotion. Then, when you have accumulated enough comp points, you can redeem them for real casino cash credits.