If the net external force acting on a system of particles interacting through gravitational force is zero,
Since the particles are interacting with each other through gravitation force, speed of particles increase due to the influence of gravitational force of attraction. So the kinetic energy of the system increases at the expense of its gravitational potential energy.