noun
compartment
kuhm-PART-muhnt/kəmˈpɑːrtmənt/
A separate section within a larger whole.
The organizer has a separate compartment for each kind of object.

Etymology
The central idea is a part produced by dividing: a compartment is a section partitioned off from adjoining sections. Here com- probably strengthens the idea of division rather than meaning that parts are joined together.
In context
each lung is within its own compartment so the left lung is in a compartment the heart and the great vessels in the mediastinum are in another compartment