Partly because shifting gears is fun. Partly because you can get more usable power out of the motor with a transmission.
It's a bit of a trade-off. To use Tesla as an example, they take the approach of just putting a massively overpowered motor in each car so that they can overcome the lack of a low gear. That works fine, but the kind of parts you need in that sort of system are expensive. Not just the motor, but the motor controller and the batteries have to handle that much power.
A different approach is to just have a normally-sized motor and an ability to shift gears. It should make for a lighter, more efficient car. (Though you also lose some efficiency in the gearbox.) The conversion I'm doing has a 120 horsepower motor, and it's going into a car that's about 3,000 pounds. I won't win any 0-60 races with a Model S, but it'll probably handle corners better and generally be more fun to drive, not to mention be about 1500 to 2000 pounds lighter.
I'm willing to concede that wanting an EV with a stickshift may be an unpopular opinion, but it's hard to know if there's a market for that kind of thing until someone starts manufacturing it. (And I don't mean the Taycan, I mean something that some ordinary middle-class person might buy.) It seems kind of a shame that we have all these legacy car companies that know how to build transmissions, but none of them seem interested in using that as an advantage they have over Tesla for that part of the market that want an electric car but would rather drive a manual transmission.