Internet is a compound formed according to English compound rules from inter- and net(work). When compounds are formed in English, each part retains its stress and the stronger stress goes on the first part. So internet is pronounced with the same stress pattern as a compound noun like "underwear".
Although intercourse and interview did not originate as English compounds, I think it's plausible that they have become interpreted as such, based on the fact that course and view do exist in English as independent words.
In contrast, interval, interpret, internal end in -val, -pret and -nal which have no existence as independent words.
Why is there a difference in stress between those three? I'm not sure. Internal follows a common pattern for adjectives ending in -al: they are stressed on the second-to-last syllable if there are two or more consonant letters between the al and the preceding vowel letter. I discuss this rule further in an answer I wrote to the question ""Substantival" - doesn't fit the normal stress paradigm" posted by mbm29414 on ELL.