Marking the subject
가 after a vowel, 이 after a consonant.
Often a new or identified subject.
Topic (known/contrast) vs subject (new/identifying).