I guess the answer would be very similar to the one for this question: When is @uncheckedVariance needed in Scala, and why is it used in GenericTraversableTemplate?
Since builders (the implicit parameter cbf
) exist for immutable (possibly covariant) and mutable (invariant) collections, the annotation is probably used here to make the to
method work for both types of collections.