It's annoying, but I suppose it follows something vaguely resembling logic, given that inheritance seems to be determined by the parents' genders. Offspring of the father's species inherit moves from the mother, while offspring of the mother's species inherit moves from the father. Given that Ditto can only learn one move which seems unique to it, you can see how that works out.
[video]