Interestingly the reason is due to the way animals and insects have evolved on the earth. In nature, many creatures evolve to show distinct colorations (called Aposematisms) for the purpose of "warning" potential predators of poison or unpleasant tastes or smells. read more
Construction equipment are not necessarily be yellow in color. Not all the equipment are yellow in color some are black and some may be orange. The primary reason is yellow is considered to be cautious. read more
Though I don't know the specifics, you do see bright yellow, green, and orange construction equipment. Whatever company makes their equipment yellow must just be doing a better job of making sales. read more