The relation between disparity and depth is derived based on the assumption that the two cameras are parallel.
Image rectification does not make this assumption valid.
But I see in many university computer vision lectures, with two rectified images, the depth map is directly calculated. I cannot figure out why.