The rest of the line to the north transferred from the Bakerloo, including the Swiss Cottage-St John’s Wood section, which was originally built as an extension to the first underground, the Metropolitan Railway, in 1868.
Source link which is perhaps badly written rather than wrong!