 The attack is more or less used to restrict the opponent's options and make it impossible for them to make territory or influence.See Go concepts

Suppose that Black begins a "ko" by taking a stone of White's.White cannot immediately recapture; the rules state that white must, for the moment, play elsewhere.