means that
wishing alone cannot fulfil desires; obtaining what one wants usually requires action and practical means.
Imagine a case where if wishing for things would make it happen, then everybody would have everything they desire; however, it doesn't work that way, one has to work.; then “If wishes were horses, beggars might ride” fits well.