Why does temperature of water does not change while it is boiling?

Because it absorbs heat change its state from liquid to gas. This is called the latent heat, and it is a constant-temperature process.

If the temperature changes without changing the state of a substance, it is called sensible heat.

Hope this helps :3