Racers are willing to put their health at risk with various performance enhancing drugs and procedures, putting a motor on their bike seems to pale in comparison.
Speaking of engineering, why not either place the motor in the seat/seat-post itself which would obscure those infrared cameras (as the heat would look natural) or insulate the area around the motor and let the heat exhaust through the seat which would accomplish the same thing? Maybe they didn't think someone would bring an infrared camera....