According to the German interior ministry spokesman

Border controls will start to be relaxed from tomorrow but depending on local regulations, people entering the country may be required to spend two weeks in mandatory quarantine.

However, considering the summer season is approaching, no willing traveller would really wish to spend their holiday in quarantine, no? So, this is largely in preparation for that.

It is the same case for Spain as they reopen international borders as well. The two-week quarantine there will only apply for incoming travellers between 15 May to 24 May.