The AP article did mention that Myanmar’s government says that the Rohingya are mostly illegal immigrants from Bangladesh.
The vast majority of people in Bangladesh are ethnically Bengali, but these Muslims are ethnically Rohingya. Historically, the Burmese kick them into Bangladesh, and the Bengali kick them right back, give or take a century.