Did Nicki confirm this? Or even hinted at this? Link me.
It is just a logical assumption.
It is a joint track that is so far confirmed to be on Jessie J's album as well as Ariana's album. I mean, say the track goes Top 10 or even #1, it'll be good marketing to be able to say that the album features a Top 10/#1 hit.