I tried to make a sentence saying that since I don't have the key I cannot go inside the room that has a kettle:
鍵がないからヤカンがある部屋に入れなかった
But I was told that it sounds better if I changed it for
鍵がないからヤカンのある部屋に入れなかった
What's the grammatical reason that explains this?