It's a coincidence. Just like how Sarah Jane Smith and Mickey Smith share the same last name.
It might not be a coincidence. Firstly, it's Rhys Allen Williams and Rory Arthur Williams. Plus they're both loyal husbands to women that were half in love with charming yet mysterious time-travellers. The parallels between the two characters are actually hard to ignore.
Maybe so but that doesn't mean they're related.