Because in NH₃, Nitrogen has three bond pairs and one lone pair, while H₂O has two lone pairs and two bond pairs. 

The angle is different because of the lone pair - lone pair repulsion which is greater than lone pair- bond pair repulsion.

Hope it helps :)

Please mark as Brainliest ^_^

Good day!
2 5 2