All things aren't good. There are really bad things in this life. Lots of really, frankly, sucky stuff. However, God can use the worst things for His purposes. There are costs involved in most if not all things. Nothing is for free. However, there are also unintended benefits in most things, if we are patient enough to look. All things aren't good but all things can work for the good.
Lord, thank you for taking the worst of this life and still making it useful and good.