This is an analogy of results so if we say hard work is related to success, we can also mean hard work results in success. With this in mind, we can also say that preparation is related to confidence because preparation results in confidence or readiness as preparing for something affects more mentally.