https://en.wikipedia.org/wiki/2013_Bangladesh_anti-Hindu_vio...
So yes, this is a bit of a case of "A tried to commit genocide on B. B won and, as it turns out, is not happy with the attempt".
One might also point out that the treatment of non-muslims in the original country of these people (Bangladesh) is worse, in terms of legal rights, in terms of treatment by the security forces, in terms of destruction, in terms of death toll, ... and yet ... no complaints from the UN, and certainly no action by anyone.
So let's just stop joking here: these people are being attacked because they directly attacked the security forces. That sucks. But these people also constantly commit violence against minorities in their midst (in fact that's how this conflict started), so let's just not pretend otherwise : yes, Rohingya are losing here, and yet they're still the racists in this conflict, and do commit genocide. Such a thing is in fact possible.