It's even smarter of Ford to (recently) recognize that self-driving cars aren't going anywhere anytime soon, and to double down on the electric car investments.
I can understand where all the car manufacturers have the same problem. They're afraid of building one too many generations of IC-powered designs (which are also following a Moore's Lawish rule of increasingly complex design) but aren't really sure what's next.
For clarity, I assume you are referring to the elimination of sedan models from their lineup. They are producing more crossovers and SUVs, pickups than ever.
They didn't really have a choice, sales on sedans have been dropping like a rock.