Ebikes are just like traditional bikes, you still have to pedal, but can use the assist or throttle on hills or longer commutes to help you get further with less impact on the body.
Studies show that ebikes provide the same level of exercise as a traditional bike, as they elevate the heart rate just like a traditional bike, and require pedaling.