Heathrow airport staffs are right. It is the liquid regulation of all airports. If one is transiting then there are restrictions to what he could buy particularly liquids and it does not matter to which country he is transitting. It is best to buy the liquids at the point of transit, in your case, at duty free doha.