Here is a little more detail on this.
Modifiers can only be applied to objects, not to parts of objects that you may have selected in edit mode. In other words modifiers can only be applied in object mode (it’s possible to ‘add’ them in edit mode, but not to finalise or ‘apply’ them there).