I would conclude that one instance of inappropriate behaviour led to another.
AS NJ points out, correctly as always, the woman should not have interfered, and was correctly arrested.
But that does not excuse the inappropriate language and manner with which she was treated while in custody.
That behaviour, for which the police have apologised and compensated her, makes her a 'victim' in the true sense of the word.
Because her situation was self-inflicted, it does not absolve the police from their responsibilities to behave properly and maintain their professional standards.