In the production of wine, after fermentation, some wines are
ready to go into a bottle and then to be consumed. Some wines
mellow/develop/improve from barrel aging before bottling and some
will benefit from both barrel aging as well as aging in the
bottle.
Knowing the type of wine you have, you can determine 'when' the
wine has matured and is ready to drink. That would be the 'time' to
drink it. So the phrase is encouraging wine lovers to let the wine
mature before you open it.