Is the elephant shrew more closely related to the elephant or the shrew?

How do we know?

Why are elephant shrews and shrews so similar?