Question about 1400 years of trojan myth making in the west

Why did the anonymous author the legendary book of The History of The Franks create a story that located the origins of the Frankish people in ancient Troy and thereby gave them (according to legend) common ancestry with the ancient Roman?