I suppose it depends on the worm. Canadian Nightcrawlers are a common food I feed my frogs and they actually contain less fat than a roach.
Another reason I like Canadian Nightcrawlers is because their calcium to phosphorus ratio is quite good. This is very important for frogs, which need calcium in their diet.
Source: Caudata Culture Articles - Nutritional Values