Omar is correct. It’s often referred to as “Z-depth” because a camera’s orientation is X for horizontal, Y for vertical, and Z for forward/backward.
But wow, this is unintuitive isn’t it…check “Z” to get the “Depth” socket in the render layers node 🤦♂️