Since when did the US got power to arrest people in Maldives?
Since they decided to give it to themselves.
Does that mean they can just go into arbitrary countries and arrest people arbitrarily?
They've been sending in people to do snatch and grabs for years now. Then they send them to a 3rd country which can use 'enhanced' interrogation which would be illegal in the US.
And then they say that anything is legal because these people are enemy combatants who don't wear uniforms, and therefore not covered under any treaties.
Oh, and if they have to, they'll send in a drone strike in a country which hasn't authorized it, and if they happen to kill some civilians who were in the vicinity -- well, too bad that you were near someone we wanted to kill.
Seriously, have you not been paying attention? "Team America, World Police" has been a real thing now for quite some time. This is hardly the first time they've done this.
They simply don't care about things like sovereignty, and their own security needs trump everything.