(straight) from the horse's mouth

Hi,
Could you please tell me the origin of this phrase? Why is horse related to "reliable source of information"? Thanks a lot.

Replies