Again, teams will often take the Best Player Available even if it’s not a need position.
The Rams have arguably the best DL in the NFL, yet they still used their 13th overall pick on Defensive Tackle Aaron Donald.
That’s not a contradiction, that’s what teams do. They often take the best player available, even in the 1st round.
The Patriots took a QB in the 2nd round even though they already have one of the best in Tom Brady.
And as for the BPA theory, it doesn't always work. Case and point: Detroit Lions, esp. under Matt Millen.