The idiom uses
马 (horse) and
虎 (tiger) — two powerful animals — reduplicated in an AABB pattern. Originally from an ancient story about an artist who carelessly painted a tiger's head on a horse's body. The careless confusion gave the phrase its meaning of 'sloppy / so-so.'