This phrase comes from the Travelogue 9.3. I've seen examples in the course like this where it is "al" followed by the verb in the infinitive and others where it is "el" followed by the same. I tried to find examples of the latter without success (which probably would have answered my question as to why if I could have seen them side by side).
I found another example of "Al...": 6.3) Al regresar a la costa para abordar el barco...
I found another example of "Al...": 6.3) Al regresar a la costa para abordar el barco...