Radiohead - Daydreaming

Why is Instrumental in this is in D Major? Daydreaming by Radiohead Chords, Melody, and Music Theory Analysis - Hooktheory

It has several out of scale notes, why is it put in D Major?