When viewed from the right side the motor is trying to turn the chainring clockwise and there is an equal force trying to turn the motor counterclockwise.
It's the same when a person walks. Your legs are trying to push the earth behind you but the end result is your body moves forward because...