Ford EV production

Ford was supposed to be the American car company leader in electric vehicles. It hasn’t worked that way at all.
Tesla is worth 20 times more than Ford in market cap, even though Ford is by far the larger of the two in revenue. How can that be?