That's literally how it works [1]. EU citizens are treated the same as local citizens in every country.
[1]: https://www.schengenvisainfo.com/europe-travel-insurance/ehi...