Why are care home residents still dying with Covid?

Almost all residents of Scottish care homes have been vaccinated - so why are they still reporting outbreaks?

Source