If you pay attention, you will find that the mirror behind car headlights is parabolic. In fact, it is a parabola (a curved surface in three-dimensional space formed by the rotation of a parabola around its axis of symmetry). The light source located at the focal point of the parabolic mirror produces a bright light beam.
Therefore, light is emitted in a direction parallel to the parabolic symmetry axis. When the light dimmed, the light source changed its position. It is no longer focused, and as a result, light no longer travels parallel to the axis. Now the low beam only shines up and down. The upward beam is shielded, so only the downward beam is emitted to a place shorter than the high beam.