Why does high rpm in motors/ cycling translate to high power output?

I road bike a lot and I’m into cars and I know that both racing disciplines often emphasize high rpm which ll give you higher power output or horsepower. Ik that power can be defined as torque x angular velocity. But there’s usually a point where the power curve drops after a certain amount of rpm. What causes this?