This is a very old and outdated saying. It is not true that horses are used to make glue anymore.
The saying was a dark joke based on historical use of hides and bones. Modern glue production does not involve horses.
It's important to remember this saying is outdated and insensitive.