tldr is that it happened because the universe cooled down from a stupendously insanely high temperature to a merely insanely high temperature shortly after the big bang.

First look at this picture [0]: https://en.wikipedia.org/wiki/Higgs_mechanism#/media/File:Me...

The Higgs field is a complex number Φ (this number can vary at different points in space, we'll come back to this, so don't worry about it for now). You can imagine it as a ball bouncing around on the landscape shown in the image. The higher the altitude of the ball, the more energy it has (just like a ball in real life). Φ = 0 corresponds to the center of the image, the point right at the top of the little hill.

At a high temperature, the ball is jostling and moving around like crazy. You can imagine constantly pelting the ball with marbles from all directions, causing it to dance eratically around the landscape. (Further, the ball doesn't experience any friction. It slows down when it happens to get hit by a marble that's heading in the opposite direction to it.) In reality, there are no marbles, of course, the jostling comes from the interactions of the Higgs field with other fields, all of which are also stupendously insanely hot.

The landscape in the picture has a rotational symmetry. You can rotate it by any angle, and it will still look the same. When the temperature is very high, the ball dances across the whole landscape. It slows down as it climbs up a slope, so it does spend less time at the bits that are at a higher altitude. But if we consider a thin ring around the center that's all at about the same altitude, the ball is equally likely to be anywhere along the ring. The average value of Φ is 0.

As the temperature decreases, the ball's motion calms down, and it spends more and more of its time in the deepest valley of the landscape. It rarely has the energy to climb high up the slopes anymore. Eventually, the ball will start to live on just the narrow ring around the center where the altitude is lowest.

Now we come back to the fact that the Higgs field is a field, which means it has a value at every point in space, and these values can differ from each other. It turns out that all fields in physics "prefer" to have similar values at nearby points in space. There is an energy penalty for fields that change rapidly in space. At high temperature, this didn't matter too much. The Higgs field had lots of energy to pay this penalty, just like it had lots of energy to climb up the slopes of the landscape. So the field here and the field 1nm to the left could have wildly different values. At cold temperatures, it matters a lot. So the Higgs field has the lowest energy if it has the same value everywhere in space. Anything else comes with an energy penalty. If we pick a point in space, and try to move the field clockwise or counterclockwise around the center, the neighbouring points in space pull the field back towards the average of the surrounding values.

So at any point in space, Φ is just equal it its average value, which is not 0. It's not zero because we have to randomly pick a point somewhere along the ring of lowest altitude, which is some distance from the central 0. The universe has randomly selected a direction in this landscape to be "special".

This is the situation from when the universe was insanely hot all the way up until the present. Incidentally, if you vibrate the ball radially, towards and away from the center of the landscape, this vibration corresponds to the Higgs boson.

If we could somehow heat the universe up to a stupendously insanely high temperature again, then the special direction would disappear, and the average of Φ would be 0 again. This is kind of similar to how magnets lose their magnetization if heated past a certain critical temperature, the Curie point. [1] If we let it cool down again, it would choose a different random special direction.

[0] https://en.wikipedia.org/wiki/Higgs_mechanism
[1] https://en.wikipedia.org/wiki/Curie_temperature