By default, this is because the category of the class is not set in any pass, i.e. no pass has been set as valid. The category is set in the class settings under «Category».

Only passes and lessons that are in the same category can be used together. 

So create new passes or edit the desired passes and select the category of the classes in the pass settings under «Where can this pass be used?»