Unless you are studying an a priori science, textbook examples are pedagogical simplifications. Yes, the cost of environmental pollution is paid neither by factories nor their customers, yet both suffer the consequences, and as such are not "uninvolved" with the third party, as the definition goes.