Made by a company owned by ITV Studios (not BBC) and international rights sold to Netflix who invested in the production.
Deals like this happen all the time. The BBC (via their studios arm) have started making programmes for other channels, whilst distributing internationally programmes made...