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 the earth has way more mass. When climbing stairs, your legs are trying to push the stairs down but the end result is your body goes up.
Here is a Google search of "
equal and opposite reaction".