Dear Student,
Calorific value not only depends upon heat of combustion but also on percentage of hydrogen.
In methane, % of hydrogen is 25
In ethane, % of hydrogen is 20
Since methane contains higher percentage of hydrogen, therefore it has higher calorific value than that of ethane.