In the ongoing race to select the Republican Party nominee, Nikki Haley has lost every primary and caucus but one. That was the District of Columbia Republican primary, which she won with 62% of the vote. However, the District of Columbia primary has historically been an outlier due to the low number of Republican voters in the district. In any case, her chances of securing the nomination are slim to none.
So what did she hope to gain by staying in the contest for so long? Normal answers would be "a place as vice president on the ticket" or "greater exposure in preparation for a future presidential run," but neither seems convincing here. The first because the longer she stays in the contest, the more she irritates Trump, and the second because, given the Republican Party's attachment to Trump, she is not exactly endearing herself to them.