It's basically very similar to playing in a casino, you buy hashing power from nicehash and you solo mine with it, all packaged for you in an easy to use interface.
After a specific amount of time you either lost it all or you mined a block, which pays the reward.