I would like to know is there any difference in quality if we buy clothes from online or from retail

I want to know is there any quality difference if we buy a same dress from online or retail shop? Why is that so? I can see in online lot of price drop is there in online but not in retail shop.