Net export is the value of exported products minus import products. The fact that imports are deducted is not because buying imported goods directly subtract from GDP. The reason of the subtraction is that the same imports were also counted in one of C (e.g. buying imported goods), I (business inventory, machines, etc), or G (government acquiring some imported goods), and since GDP counts only domestic production, value of imports must be removed from the aforementioned sources.