Well, it's not "usually." If you attach an everstone to the female then the baby has a 50% chance of receiving the female's nature. So in the case of your diglett, you were lucky. In the case of your ralts, you're just unlucky unfortunately.For those who don't know, attaching an Everstone to the female will usually keep the personality trait of the female pokemon.