Cultures of Europe, North Africa, and the East were very well connected during the times of the Silk Road and it's architectural styles and techniques naturally spread and occasionally appeared in places far removed from their origin.
As for cutting into rock, people are just good at that.
