There are only so many ways you can string together the notes on the Western scale to create pleasing music. And with so many songs out there, a certain degree of duplication is unavoidable. This is different from plagiarism. That requires proof that you have an intent to pass someone else’s work off as your own.
But many delight in these gotcha moments. Call them unfortunate sonic coincidences. BuzzFeed has this a collection that includes this example of the intro to Haim’s “The Wire” and the Eagles’ “Heartache Tonight.”