No one.
If you own shares of stock, you own an asset. Similarly, if you own an oil well you own an asset. If the value of an asset you own goes up, you make money; if the value of an asset you own goes down, you lose money. No one else makes or loses money because you are the sole owner of...