means that
obtaining a desirable reward often requires effort and overcoming an obstacle first.
When you cannot expect anything without working for it; you have to put an effort to obtain what you want., the saying “He that will eat the kernel must crack the nut” is appropriate.