There are two kinds of programmer - one who is preparing for interviews and second one who is building something.
I remember myself - i could solve most of programing questions starting from simple to DSA when i was in college and used to give interviews.
But once i got the job - i was majorly working on building something dealing with api, framework, database, frontend etc and never used DSA concepts like trees etc.
And that's the reason - if anyone ask me to write a program for simple binary tree : i will hesitate and will take good time to write this.
And that's why i think - these questions are irrelevant for experience dev but good for freshers.