Everyone knows how engine works,but how does that stops ?....

When you turn the key off the car will deny the engine intake is it will stop fuel supply. In modern cars with electronic fuel injectors, the engine control unit stops operation of the electronic fuel injector Where as in bike when you turn off the key it will break the power supply to the spark plugs. Then engine stops....herrrrr.