Bubbles appear in glass of water overnight – why?

When you take a glass of water up to bed at night and leave it there in the morning have you noticed there are loads of bubbles in it ? Why? What causes them? Really annoying me and my father in law who wants to know as well. HELP PLEASE…