Stones on the first line start life short of liberties — every move along the edge buys a new breath, but the board ends. This pair is already sealed on the right by your stone and covered from the second line. The only air left is at the open end toward the corner. Fill that end and both stones come off together; the usual mistake is hesitating, because a first-line group never gains the liberties to fight back.