When child stands up centre of mass shifts upwards.
The child swings in simple harmonic motion,
hence time-period is given by T=2πgl ⇒T∝l
where l is length of swing.
When child stands up,
the length is shortened as centre of mass shifts up,
hence time period decreases.