I almost agree with Дмитрий.
I think it's a set expression that 「○○だからといって〜〜ではない。」
「学者だからといって何でも知っているというわけではない」
In general,we think「学者は何でも知っている」→しかし、全ての学者ではない。
For example 「日本人だからといって寿司が好きなわけではない」
→In general we think that Japanese likes sushi.But it's not all Japanese, some Japanese don't like sushi.
It's in my opinion.
I hope it help you!