GetComponentScale() returns a vector consisting of three floats. If you want to access those floats individually, you can get to them via .X, .Y or .Z (for the first, second or third component respectively).
So, when appending .X, it means we’re just grabbing the single float describing the X-component of the vector (scale vector, in your example).