Considering the original trilogy states that Force sensitivity is passed down through bloodlines (“the Force is strong in my family…”)
This doesn’t mean that the force is hereditary. “The love for Star Wars is strong in my family” also doesn’t mean that liking Star Wars is determined by ones genes.
In context, Luke was saying that because the Force was strong in his family Leia was Force-sensitive despite not undergoing any training.