When we lived in rural Spain in the 1960s the Guardia Civil (the rural police with the funny hats) carried Mauser rifles.
The submachine guns were carried in certain places like border crossings, airports and patrolling certain towns where trouble could be expected. There was some guerilla activity and terrorism from Basque nationalists.
I will have to ask my Dad more about it. Details.