I like to look at it another way.

If you have a box full of different tools, and you need to solve a random problem, if you have a lot of different tools then it's more likely that one of them will be useful.

If all you have is a hammer then everything starts to look like a nail, but there will be an increase of problems that can't be dealt with.