Sometimes they are. My house is single story and has sewage pipes in the walls. Regardless of whether that is a requirement, the pipes have to go through some part of the structure to get to the outside, regardless of whether that's a wall, floor, foundation, etc.