A question with a related topic can be found here. The following quote is extracted from the approved response:
When using CSS Transform, it does not disrupt the layout of the document. The DOM element will maintain its original position and size within the page structure.
Response provided by techexpert
Hence, the DIV remains stationary because even though it is scaled, it is still considered to be the same size by the document. If you want the transformation to impact the layout, adjust the width and height properties accordingly.