To unlock the Jet in Sonic and the Black Knight, you need to earn five mastery stars in a mission within the Great Megalith. Achieving a top performance is the key requirement.
Once you have collected all five mastery stars in that mission, the Jet becomes available to you, adding another option to your arsenal for the adventure ahead.