Why were Harry and Meghan in the second row for Queen's funeral?

The Duke and Duchess of Sussex, 38 and 41, sat next to Princess Beatrice and her husband, Edoardo Mapelli Mozzi, at the abbey.