On the other hand, all of the medieval castles I've seen have holes in the walls (somewhere high, in the name of security) where one would dump one's faeces out. Failure to take that in account is an error muchly similar to what is described here for sci-fi.
In sci-fi, the mechanisms tend to be at least plausible developments of current theory. In some cases, they even form the basis of the work rather than a mere plot point. Compare Greg Egan's oeuvre, where in many cases the mechanism is the point of the work rather than a plot device.