I wouldn't be surprised if in some cases just the tooling bits are around $5000, leaving aside the whole machine. For high-resolution machining, e.g. for lens fabrication, there's a whole science to drill bits, where special processes allow for achieving up to sub-nanometer surface roughness in parts. If they're making holes in hard metals they might be using titanium, diamond, or carbide drill bits that have crazy physical properties and cost a pretty penny.
In some sense CNC machining is also a WWII era technology, but CNC machines from that era couldn't touch what modern-day machines can do and the repeatable precision with which they can do them: https://www.youtube.com/watch?v=RnIvhlKT7SY
While on the subject, this really is a fascinating field and it rules the world more than people might think. Consider that TSMC's core machines are made by ASML. Among the most important and specialized-IP parts in ASML machines are the huge lens which are made by Zeiss. Zeiss makes the lens with some next level machining equipment from companies around Heidelberg and Karlsruhe area. High-resolution machining isn't super known to the general public but it is so fascinating once you get to see the things they can pull off.