Weeelllll . . . I’m rather puzzled that you did think it. The NHS has been treating foreigners for money for many years, & has always, AFAIK (it certainly had when I worked in it in the 1970s, & enforcement is apparently stricter now) had rules requiring anyone coming to this country with a pre-existing condition to pay.
Why did you think otherwise?