To meet someone by accident means to meet someone by chance, or unintentionally. In the joke, this person's boyfriend backed his car into his future romantic partner's car. The joke is centered on the phrase "we met by accident" which can mean "we met by car accident" or "we met by chance". Both apply.
My boyfriend and I started to date after he backed his car into mine . We met by accident .