I always figured this was to support Material Design, where the size of a drop shadow depends on the difference in elevation between the surface casting the shadow and the surface underneath.[1] A Material Design compositor would have to know the position of each process' surfaces in 3D space in order to render shadows correctly.
[1]: https://material.io/guidelines/material-design/elevation-sha...