As per my understanding,
They help to break n-well continuity which prevents and acts as a protective barrier from another tile.
2. The DRC of the endcap rule has been established to follow point 1.
Fun facts: endcap is not needed on the bottom and top side of the block above 28nm Technologies.