Anxiety and worry are attitudes we need to rid ourselves of. Peace and joy (among others) are the fruits of the Holy Spirit, the attitudes of Christ we are to put on. God’s peace, by the Holy Spirit, guards our hearts, changes our attitudes, when we pray with thanksgiving.