Acid–base chemistry

Why can water act as either a Brønsted–Lowry acid or a Brønsted–Lowry base?