Why is Wnaeth used here please

in challenge 21 “Your mother told me that I shouldn’t ask” - why is there “wnaeth” used before the “ddylen i ddim” please? Diolch. Oh hang on- just realised I misheard it and it was “na” ddim i instead. Luckily i went back to the vocab! Sorry!