Kinetic energy, K.E. = 1/ 2 mv2
If the velocity is constant, Kinetic energy is directly proportional to mass. So as mass increases, kinetic energy also increases. Here, mass of horse is greater than that of dog, so kinetic energy of the horse is greater than dog when speed is constant.