Explanation in closed form analytical model are presented by previous two answers. In brief, the length of a OPEN SECTION (i.e. steel beam) will determine the resistance of the section to rotate in its weak axis. Take a long ruler in horizontal position with its major axis point upward and try pressing the free end downward. You will observe the ruler starts to twist. That is LTB. If you try to restraint the beam from moving sidewards along the length, the resistance to LTB increases.