Why did President Trump make up this lie about President Obama not calling the families of bereaved soldiers?

Why did President Trump make up this lie about President Obama not calling the families of bereaved soldiers?