Why would a guy friend keep telling you that his girlfriend and your boyfriend would be a perfect match for each other because they are both the same?

It sounds like your male friend would like to take your relationship to a higher level. It is not always true that two people alike get along better. Sometimes opposites attract. It's obvious you love your boyfriend so just let your male friend babble on (he's giving you hints as to how he feels about you), but always watch your back and be sure he doesn't cause trouble between you and your boyfriend. Maybe he is saying that so that your boyfriend will break up with you and his girlfriend will break up with him. That way, you will be single, so that he could date you. Ask him what he really means by that; meaning if he likes you more than just a friend:)