Surface beats organs.
A lung is an evolutionary shortcut: maximum exchange in minimum skin. Useful, but expensive. The plethodontid salamander made the opposite trade — keep the skin thin, keep it wet, let the whole body do the work. Codebases can choose this too.