Slovenia was part of the Austrian Empire and were getting their butts kicked till they enlisted assistance from Germans. The Austrian/German built caves had many purposes.