2 answers
Dave’s Answer
There's a term regarding developing skills and its called "T-shaped" people. The horizontal bar of the T denotes a broad range of skill, while the vertical bar of the T denotes a depth of skill in a particular area. So, a T'shaped person would have some depth of knowledge or subject matter expertise in a particular field, while also having broad skills in areas such as communication, leadership, influencing to name a few.
So why not develop skill in an area of expertise while you're also developing broad , "soft " skills that will help you work effectively with others?
Wael’s Answer
A professor once told me while I was pursuing my mechanical engineering bachelors, "It is best to know something about many things than knowing everything about one thing." I agree with him to some extent. I believe you need to know something about many things; however, you need to know almost everything about your career.