Why are grasshopper and Drosophila said to show male heterogamety? Explain

Male heterogamety is shown by male grasshopper and Drosophila, as they both produces two types of gametes having 50% X-chromosomes and other 50% Y-chromosomes