I’d guess it was just someone in the stables personal stuff given the small amount. Cocaine is very common pretty sure the 2nd most common drug in Australia outside of marijuana.
Highly doubt it would have been used with the horses.
Also the hours stable workers are known to work.