Why did ford stop making the inline 300?

they stopped making the inline 6 because it took up too much room, in length, the engine is a very tight fit in most pickups or cars and they started making the v6 because it is only 3 cylinders long instead of 6 cylinders, the main reason was just engine length