The princess had him hide, and told the giant that he did not smell a man when he stirred from his sleep.
The princess concealed the prince to avoid detection by the giant, who was tricked into thinking he didn't smell a man when he awoke.