I think it is mainly coz F150 has to have huge space in the front for the gasoline engine. Electric motor for the front for Cybertruck is much smaller. Therefore, Tesla can put the cabin (where people sit) more forward toward the front. So they can maintain the 231.7 inch length and keeping the 6.5 ft bed at the same time.