The same thing happens when going from somewhere to anywhere else and transiting through Doha on (eish) Qatar Airways. Bag sealed or unsealed makes no difference even if stuff bought on previous Qatar Airline flight.
Treatment in keeping with awefulness in attitude of the airline-weep for their non local cabin staff.