Dear student,
This is true because at boiling point of liquid heat transferred to liquid is used to vaporize the liquid.
The amount of heat required to vaporize the liquid is called latent heat of vaporization.
So temperature of liquid remains constant while phase change from liquid to vapour.
Regards