The reaction of one equivalent of hydrogen bromide with 1,3-butadiene gives different products at under different conditions:1

The addition of hydrogen chloride also gives rise to similar products.2 I can see that the low-temperature product is formed via an electrophilic addition, with Markovnikov regioselectivity. But how is the other product formed, and why does the major product differ with temperature?