No one said any investment is 100% safe, but at the least with stock shares you're placing money on something other than just odds on a payout table.
The only way those two investments can be considered to have even chances of making a profit is if you have no knowledge about stock market and shares you are investing in.
Even with "knowledge" of the stock market you still have risk. If it was possible to have knowledge everyone would be doing it and everyone would be rich. The bottom line is you are guessing and hoping for the best.
Yes, you are right. In stock market if the price of the particular stock is increased then it will be a profit for the shareholders and at the same time if someone has opted for derivatives (call option-Put Options), and placed trade on put option then it will be really huge loss for them.