If we say that thereby something happens, we mean it is a result of something else.
He didn’t score a goal, thereby ending his chance at setting a record.
Example picture