This is how it's gone down: she was having sex with someone else when they were in the off again part of their on again, off again affair and that someone else has done the math. That someone else is going to ask for a paternity test and Barnaby freaked out and had to get in there first before that someone else has a huge headline and Barnaby is pwned.