Most likely you did not come to a complete stop before crossing the limit line/crosswalk and "rolled" through the red making your right turn.