When buying or selling options, the investor or trader has the right to exercise that option at any point up until the expiration date - so simply buying or selling an option doesn't mean you actually have to exercise it at the buy/sell point. Because of this system, options are considered derivative securities - which means their price is derived from something else (in this case, from the value of assets like the market, securities or other underlying instruments). For this reason, options are often considered less risky than stocks (if used correctly).
Basically, you need the stock to have a move outside of a range. A similar strategy betting on an outsized move in the securities when you expect high volatility (uncertainty) is to buy a call and buy a put with different strikes and the same expiration—known as a strangle. A strangle requires larger price moves in either direction to profit but is also less expensive than a straddle. On the other hand, being short either a straddle or a strangle (selling both options) would profit from a market that doesn’t move much.
Volatility also increases the price of an option. This is because uncertainty pushes the odds of an outcome higher. If the volatility of the underlying asset increases, larger price swings increase the possibilities of substantial moves both up and down. Greater price swings will increase the chances of an event occurring. Therefore, the greater the volatility, the greater the price of the option. Options trading and volatility are intrinsically linked to each other in this way.