Done to highlight specific areas that are going to cause real problems if it even moves by millimetres - such as points, crossovers, etc. Continuous rail is more easily tensioned.
Continuous Welded Rail also has appropriate expansion joints anyway and is designed to expand and contract freely, within certain environmental constraints of course, so is less of an issue on open track. I believe the main issue is with fixed track, primarily at and in short sections between points and crossovers, which has less space to expand than
CWR▸ and you will see the white paint applied to the sides of the rails at these locations across the 'western region'.
It doesn't appear to be something that has been adopted nationally for some reason and as I recall from a bit of googling when I first noticed the white paint, it is a 'Western' region thing going back many years.
Quite why this appears to be such an issue in the
UK▸ and not so much in countries on the continent that experience much larger annual temperature ranges is beyond me!