The police arrested the rioters because they were causing trouble.

Who is they referring to?
the rioters