The important equilibrium in water
Water molecules can function as both acids and bases. One water molecule (acting as a base) can accept a hydrogen ion from a second one (acting as an acid). This will be happening anywhere there is even a trace of water - it doesn't have to be pure.
A hydroxonium ion and a hydroxide ion are formed.