Learning material in different settings allows the brain to make multiple associations with the same material, which leads to more effective encoding/remembering. While it might be difficult to find one quiet place to study, let alone multiple spots, it can be very helpful and effective. The library is almost always a good second option in addition to home.