Basically you upload your videos, and meta data for what they call reference files. Which I doubt are publically viewable.
https://support.google.com/youtube/answer/3244015?hl=en
Plus if it automatically matched videos already uploaded would cause a mess because so many channels use royalty free music or content library... So then everyone would claim they own music they don't really own.