The lone pair can hydrogen bond to the hydrogen from the opposite base, helping to stabilize the DNA.
Show me a hydrogen bond
Show me all 3 hydrogen bonds

CG Pair
Remember that we can draw resonance structures to get a feel for charge distribution within a molecule. If we do this for the two bases, we find that the charges make for an attractive hydrogen bond.