I use lemon juice for two reasons: 1) Tossing the apples in lemon juice prevents them from browning while I am cooking the butter and sugar.  2) The lemon juice provides an acidic counterpart to the sweetness of the brown sugar and the sweet apples, making for a more balanced flavor profile.