Lightfield cameras were briefly a thing, but then I guess the engineers at Google and Apple figured they could fake it well enough with algorithms + depth sensors.
https://en.wikipedia.org/wiki/Light_field_camera
It would be cool to see a traditional SLR/mirrorless with a depth sensor, indeed!