Prediction markets like Kalshi, which some liken to legalized gambling, allow investors to bet on reality. Here's how they work and why they're so controversial.