Bench press has long been a favorite exercise of body builders, sports people and gym goers for development of hypertrophy and strength in the pecs, triceps and anterior deltoid. This is because it tends to get great results due to the ability to maximally load the muscles.
If you lift heavy enough and frequently enough, the shoulder joint will be overloaded and injured. This is due to the lack of shoulder blade movement while lying on the bench. The bone of the shoulder joint is then forced forward stretching the ligaments in front.
The stress in the front of the shoulder joint becomes problematic if you already have a history of shoulder pain.
Ensuring correct technique will help to minimize the inevitable overload.