With generators their carb fuel solenoid when they not energize are in the retracted position. As the generator is being shut down the solenoid gets energized extending the pin which block the main fuel nozzle pathway. Thus the solenoid is spring loaded to auto retract when not energized.
But it is possible a tech not knowing this to install the wrong solenoid. This would be a case of assumed guessing without doing their research.