How does the sentence end?

The dog ran up to Kayla and past Rebecca because
Kayla had a dog treat.