I believe apple has some kind of a depth sensor which makes them do it.
Agree why Samsung can't do the same as well.
Could be because of the larger 200MP or something else.
I know for sure another phone could do that as well. Nokia or some other. Can't remember.
Follow Me, like my posts and Mark as Solution if I helped solve your Problems.