Because compound is a substance formed by a chemical reaction of two or more separate elements. If a compound is separated, it would become two or more different substances instead of similar ones.
Hydrogen bonds forms when hydrogen atom is attracted towards oxygen atom of other water. A proton is shared by two ion electrons pair in which oxygen atom is partially negatively charged while hydrogen atom is partially positively charged.