ASML machines include a large amount of technology from the US, and so can be controlled under US export control laws.
A country is free to develop all those technologies locally and not face US export control, but that's such a difficult task that nobody has achieved it.