Oh, I found out why. It deletes intermediate products, not actual items that are worth stuff, like inserters and modules and etc. I think that's base game mechanics, not your mod or a bug. Same thing happens with removing belts and stuff.
I apologize for wasting your time, I thought it was something with the chests, but it appears it is not. Thanks for looking into it anyway!