It's time decay. And option has 2 types of value - time value and intrinsic value.
Intrinsic value is the value of an in-the-money option. For example, let's say you have a call option on XYZ Corp. at 50 and the price of XYZ Corp. is $52. The option has an intrinsic value of $2 ($52 stock price minus 50 option strike price).
On a put option, if the strike is 50 and the stock price is $45, the intrinsic value is $5.
Time value is the portion of the options premium that is relative to the amount of time left till options expiration. All options have time value built into them. But the time value decays till the day of expiration and when the option expires there is absolutely no time value left. If the option is in-the-money, all that is left is the intrinsic value. If the option is out-of-the-money, there is neither time value nor intrinsic value so the option will have expired worthless.
The closer the option gets to the expiration date, the less and less time value the option has, but is not a uniform decay pattern like 2% a day. The further out the option is, the slower the time decay. The closer the option gets to expiration, the faster the time decay. The time frame where the option loses time value the fastest is the time from from 6 weeks thru 2 weeks before the option expires. When the July's expired, there was only 4 weeks left on the Aug. options.
Also, the greater the certainty about an options expiry value, the lower the time value and vice versa.
So, if there was a major drop in the Aug. options right after the July's expired, that can be attributed to the Aug. options being in the time range of the fast rate of time value decay and also probably that the market is pretty sure what the value will be when the Aug. options expire.