Black and white film can scan beautifully, but only when the negative is made with scanning in mind.
Many photographers expose and develop film the same way they would for silver gelatin printing. That can work, but scanning changes the goal. A darkroom negative needs to print well through an enlarger. A scan-first negative needs to hold enough shadow detail, smooth enough midtones, and controlled enough highlights to give you room to work in Lightroom, Photoshop, or your preferred editing software.