Firstly, peas and fruit flies come to maturity much faster than humans so you can fit in lots of generations in a practicable time. Secondly, fruit flies have a much simpler genotype than we do. Finally there are far fewer ethical restrictions when you experiment on flies or peas.
One of the reasons that patterns of inheritance in humans cannot be studied as easily as in peas or fruit flies is our generation time is approximately 20 years. Is it is about three months in peas and it is about 30 days in fruit flies. All the genes in fruit flies have been mapped. Not all of the genes in humans have been mapped.
Humans are more complex that either peas of fruit flies.