Why engine light came on?

What engine light? If you are referring to the check Engine Light, then the computer has detected a problem that effects the emissions controls.