What is happening is the the iPhone is scanning your face with its LiDAR to record a 3D dimensional image of your head. What it is doing is basically measuring the space between your ears so it can compute the spatial audio time settings correct.
Load the excellent photo app
Halide and you can see the LiDAR scanning.