"ended up" refers to the way that things finished or concluded. The sentence suggests that a situation arose which eventually ended with her deciding to leave the party early. For example, perhaps she felt unwell, or perhaps she had an argument with someone.