When I first got a RAV-4 hybrid, I had no idea that this sound was being pumped out of a speaker. I thought it was an artifact of the electric motor. As it happens, companies spend a lot of time designing their unique electronic sound as a signature of the vehicle. My dog has learned to recognize the sound and he barks when the car is as much as 1km away.
Video coincidentally posted today that details some of the design requirements of these sounds: "What should an electric car sound like?" ( https://www.youtube.com/watch?v=ZnAGXvVNMB8)