Why people give sound in sleeping?

Because people still breathe whilst sleeping, else they'd die. It's just that when sleeping, people generally can't control their breathing, so they often breathe louder than when awake.