There are basically two ways to resolve a ko:
Black has played a ko-threat to which White decide not to respond :
connects and thereby resolves the ko, in short white connects the ko.
Note the presence of the marked stone. Black has played a ko-threat to which White decide not to respond :
In this case, it is more profitable to capture the marked black stone, ending the ko.