I am 25.
The reason is simple: I moved when I was 23, to a place where I didn't know anyone. I met people there, we did stuff together, often, because I was very available, because I didn't yet have other people to spend time with, and now we are friends.
If you already have an established group of friends, you are probably less available to make new ones. But if you find yourself in a situation where distance is created, that's when you are the most available to make new friends.
I'm only a decade older than you, but when I look back over that decade it feels like everything's changed. I've made new friends through hobbies, music, sports and yes, the workplace. I've lost touch with some people I thought were close friends. I've also been surprised by getting back in touch with people from school or university who I thought I might never hear from again.
Would I lie for those people in court (or vice versa)? I dunno. It's kind of a weird litmus test, because it depends on one's principles, how serious the charge is, and one's perspective on the legal system. It could happen, but I could only answer on a case by case basis. It's possible that I'd lie in court for a complete stranger if the circumstances were right. I struggle with absolutist views like "This is what friendship means and I will 100% behave in this way if that situation arises".
How would I define "friend" as opposed to "acquaintance"? Possibly as simple as: someone that you spend time with just for the enjoyment of it. If they're a work colleague, this means that you're likely to meet up socially, away from the office and work events (even if just online). Otherwise you're there because you have to be.
You have lied in court. Is this correct. How do we know you are telling us the truth.
But: It’s not hard to say „no, I have never seen him doing drugs“ or whatever.
Don’t expect everyone to say the truth just because game theory suggests to optimize for individual rather than mutual reward.
Friends are those relationships which I made during childhood. I still keep those relationships up. We have a much stronger bond through the stuff we have been through together.
I think friendship needs very strong loyality which is just not given in a normal work environment. Eg I’d never lie in court for my acquaintances, but I have certainly for my friends.