They are actually waste disposal tubes. Back b4 particle dissolution techniques had been invented (TNG), transporter recycling (TMP) had been used to break down waste into reusable forms for all sorts of ships systems from water, manufacturing, clothes, food, etc (gross)... But there were some forms that went out the waste tubes. Thats what those were...