Hiking muscles - all your leg muscles plus your core body support. Arms and upper body are not that important for hiking.
Cardiopulmonary - your lungs and heart need to be fit to supply your body with adequate oxygen.
Gear - your feet need to be comfortable with your boots and your hips and shoulders with your pack.