I'm not an expert, but I believe that's because there is no Nikud on duolingo. When writing in Hebrew with Nikud, you can write היתה with one י. When writing without Nikud, you should write הייתה. You can check Nikud rules for more info.
2 years ago