“Bachelors know more about women than married men; if they didn't they'd be married too.”
The idea behind the quotation
The joke is that single men understand women so well that they avoid marriage, while men who understand less are more likely to marry.