“When I was not well-behaved when I was young, I admired the birds in the distant mountains.” It means that although I was not well-behaved as a child, I admired the free-flying birds in the distant mountains.
This expresses a yearning for freedom and unrestrainedness, and also hints at the nostalgia for childhood and the cherishment of simple life.