I use the shifters on my Ebikes in two situations.
One is off road trail riding. Either I want to pedal with assist the whole way but at speeds that vary with the grade, or I want to ride without pedaling and only pedal when the motor is suffering from climbing a hill that is insanely steep. Either way, you want to be in the correct gear at the moment.
The other situation I have not been in for years. My first hubmotors were of the faster winding type. This made taking off from the many stop signs when riding in the city center use a lot of power. So I had to practice pedaling hard to get going each stop or run my battery dead before getting home. I would shift down two gears, get going, then back to the highest gear at about 15 mph. This sort of mirrored the way I rode when young, I never shifted down very far then.
You may have noticed that I get on a high horse about this fast motor thing. It sucked having to shift constantly, but if your ride is short, you may not have the problem I did with a long ride home. The main bike I use on the street nowdays has a middle speed winding rather than a fast one. With plenty of power at hand, I never downshift that bike, ever. It just stays in 48-14, and if I ride it faster than 20 mph I just stop pedaling.
You'll see that approach preached a lot here, more power, and who cares anymore about gearing or pedaling? But it's not for everybody. When people are not interested in speeds above 20 mph, I push them to get slower motors, but run them at 48v. This gets them their cake and eating it too. They never have to pedal, even on very steep hills, but they can always pedal if they wish to. Only if they want to go less than 20 mph would they shift down. But the main thing is they never get forced to shift gears by the motor not performing good enough.
You do want to be able to somehow shift down, if you break down or run a battery dry. A front derailur can be removed, but the chain can be put on a smaller gear with your hand when stopped.