The low slow boil of the berries and sugar helps it to thicken up. Plus summer berries usually contain pectin themselves. The lemon juice also helps to react with the sugar to help it gel up.