1) For some reason, they have an outsized position that they want to reduce. Circumstances include:
- Proprietary trading group wants to liquidate a position without having to go to the open market
- Firm obtains a large position as part of a block deal.
In this case, I suspect they engaged in a deal with a hedge fund that had a large exposure to AAPL and wanted to get out. GS would have acquired the position at a significant discount (say, 5% below market price).
2) They need to find clients to soak up the exposure.
To do this, they construct investment products that allow them to offset the exposure without having to directly move the inventory. Offering shares directly would have to be essentially free, but products can be sold with some extra fees.
To summarize, they have a long position in AAPL and taking the opposite side of a derivatives trade helps balance the net position.
Note that if the clients made money then you wouldn't hear about the deals. It's only because clients lost that we are hearing about this.