From memory they actually did originate from the same franchise. I think it's the same with a hell of a lot of European basketball teams, and in random sports like volleyball and handball as well.
Yeah, i've had a look now and there's: FC Barcelona B FC Barcelona Futsal FC Barcelona Bàsquet FC Barcelona Handbol FC Barcelona Hoquei FC Barcelona Ice Hockey FC Barcelona Rugby FC Barcelona Rugby League That's fucking ridiculous.