The entrance to the Cinnabar Island Gym (the seventh gym) is locked because you must defeat Blaine, the Gym Leader, first. The locked door serves as a visual gate: you prove your worth by battling Blaine, after which he grants access. This is a standard progression mechanic in Pokémon games—barriers that require overcoming a specific challenge before advancing.