The experts probably deemed it safer to gain height above the runway first, giving you some kind of safety margin if there was windshear.
You should have already attained enough speed to handle the loss of an engine in the first hundred feet or so, so the priority switches to maintaining terrain clearance.