It’s about the language barrier.
It’s just not worth the trouble for foreign criminals to develop German language capabilities.
German regulation does exactly nothing to prevent foreign criminals from spamming Germans with robocalls from foreign numbers, Germans just aren’t an attractive target.