I observed this when compiling for MacOS with Delphi Rio. See the attached sample program and observe memory usage.
A large bitmap is created and selected into a device context. After creation of the dib section memory usage increases by ~160 MB according to the section size. The DC and the dib section are then deleted but memory usage stays as high as just after creation of the dib section.