From the article:
UPDATE: It appears that I was wrong and that this is a feature of screen time and not of Duolingo. Any app that is granted screen time permissions requires screen time password to delete (or requires you to revoke the screen time permissions). I made a bare SwiftUI app that does nothing but request screen time permissions, and it blocked uninstall once it was granted.