Well since they save a tremendous amount of time and effort by incorporating code that other developers spend their time on it the least they could do. Heck, it's even possible to mostly automate this as a lot of companies already (automatically) check for licences that require attribution or have other conflicts before you release your product.