-(으)려고 states the purpose and 모이다 is people coming together for it: 200만 기념하려고 모였는데 'we got together to celebrate two million', 기후회담을 하려고 모인 'gathered for a climate conference'. It works for a family at a holiday and for states forming a bloc alike — BRICS는 다른 강대국과 경쟁하려고 모인 게 아닙니다. Several lines end in -는데, setting up a 'but'.