When you click twice too fast (not intended) to check inside closed dressed clothes, they will go inside your inventory if they are empty (try with empty shirts, pants, boots,etc.);
When you click and hold dressed clothes, maybe for mistake, and then you let them in the same spot, they will go anyway in the inventory (try with gloves, glasses, helmets, etc.).