There's only one reason - friends!
The company you keep is causing you to lose concentration. You might have to reshuffle your "cabinet of friends", and set your priorities right.
You will have to associate with people whom you see as a challenge. Then, you'd have to sit up and strive better to improve your performance.