The Lineage of Jesus

Why does Matthew begin his gospel with the ancestry of Jesus? He wants to set the reader up to know who Jesus really is. It is true that Jesus came from a family lineage, that is a real person who came to earth for the very same kind of people he came from.