Google looks at more than just the H1, H2, KW density etc of the post. If you have just reworded the sentences of another websites article, then it is possible that google has identified the structure (looking at location of full stops, paragraphs etc) and deemed the lower ranking article to be...