The phrase "than bad ones" is a comparison used to indicate that something is better or preferred over another thing, which in this case would be considered as being worse. It's an idiomatic expression that means having good qualities or characteristics compared to those with negative attributes.