It does that. The only time the engine actually responds to the go-faster pedal is when the hood is open for diagnostic purposes. During normal operation, the engine does what the car needs to fulfill what you ask it to do. Which may involve running the engine at various speeds, or it may not. Pay it no mind, focus on just driving, and it'll be fine. *YOU* can't make it do anything that's bad for it through normal driving either. It'll never rev past what's safe, it'll never overcharge or undercharge the battery, it'll never let the battery get get used when it's too cold or too hot.
(Edit to add) When the engine is actually running, that is. If it's not running and you STILL hear the sound, we'll want a video or something..