This idiom is often used in situations where things aren’t going too well, and you need to prioritize what the most urgent matters are. If someone mentions a problem that can be dealt with or solved later, you use this expression to tell them that. This is especially true if the problem may never arise.