Physics 101: ideal engine would have maximum power at all possible RPM range (from zero to max) with accompanying torque level equal ~max_power/RPM.
An ideal reciprocal ICE would have flat (maximum) torque curve, with its maximum power happening at the maximum rpm for that engine.
Torque essentially comes from the explosion inside the cylinder, so if you ignore the inefficiencies associated with engine breathing and mechanism limitations, the (max) torque is the same as all engine rpm.
Torque determines work done by the engine per revolution so the more revolution you can put inside a given time frame (ie. high rpm), the more output you get out of an engine -> HP is linear to rpm, assuming flat torque.
Obviously, the torque curve isn't flat: it is low at low rpm, and at high rpm too. Because of that, EVs have a considerable advantage over ICE at low rpm.
You can point to lots of dyno charts for support.
Obviously, we are making a significant simplification: (brushed) DC motors have its maximum torque at zero rpm and minimum torque at its highest rpm -> you can point to lots of dyno charts for support as well.
However, motors in EVs are not your traditional DC motors so that doesn't quite hold*. But in general, EVs tend to have a flat (and maximum) torque at low rpm and then it starts to decline. So great take-off in a EV (I think something like THINK achieved sub 6s in 0-60mph, quite impressive for a shoebox), tough luck at highway passings.
*for example, brushless DC motors have terrible torque (practically none) until a certain rpm is reached.