Why the gain weight and cover score of some features are nan while the importance score of these features from sklearn is not nan

why the gain weight and cover score of some features are nan while the importance score of these features from sklearn is not nan