The reason for this transposition is historical. In the early days of clarinet playing, the instrument was not as standardized as it is today, and different clarinets were pitched in different keys. The Bb clarinet became the most popular because it was the most versatile, and it was eventually adopted as the standard key for the instrument.
Even though the clarinet is not actually in Bb, it is still often referred to as a Bb clarinet because of the transposition of its written notes. This can be confusing for beginners, but it is important to remember that the Bb clarinet is actually in the key of A.