What? I went on Aliexpress and found a 40KHz transducer for $40. You can 3D print the attachment, can't you?
I expect they used something like these:
https://www.emerson.com/en-us/automation/branson
You cannot 3d print anything in the ultrasonic chain, they need to be machined from specific metal, that's why the horns cost so much.
We're talking about coffee here...
Wars have been fought over coffee, people regularly spend thousands for coffee machines. There are entire companies that exist just to cater to this market.
Me, I'm a tea guy.