I have learned to ride a bicycle when I was five. "When I was five"is a subordinate/time clause. According to grammar, when this clause refers to the past, we use either the past simple or the past perfect depending on the context of a sentence. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.