IAP - purchase of subscription results in restoring an expired subscription

When purchasing a subscription
Code Block
let payment = SKPayment(product: product)
SKPaymentQueue.default().add(payment)

sometimes result in returning a .restored transaction inside

Code Block
paymentQueue(_, updatedTransactions:)

this wouldn't be a problem, but the subscription corresponding to the payment is expired (i check after i refetch the app receipt that contains no valid subscriptions)

How is this possible?

IAP - purchase of subscription results in restoring an expired subscription
 
 
Q