We're all just guessing based on partial evidence, but every time I've mentioned that people should talk up more in meetings, it has had nothing to do with their leadership skills. It's always been as part of a discussion about how they need to try to understand the bigger picture. Being able to describe your designs, and being able to articulate alternate designs, is a very important part of software development. If OP is the kind of dev who gets lost and can't contribute when the discussion becomes abstract, that's an important skill to be lacking.
And let's be honest, lots of people with 15 years experience really have 1 year of experience 15 times. It's really hard to guess at the situation based on no evidence, but I can easily see both sides here.
Yeah whatever happened here, the communication from this person's leadership was bad. I'm not trying to vilify them—maybe they had their reasons—but OP is clearly confused about why they were laid off and how (if) it could have been avoided. If I were going to fire someone with 15 years' experience, I would really try to give several clear warnings and actions leading up to it, assuming that was my actual reasoning.
"Fired" and "laid off" are two different things entirely. OP was laid off, not fired, and I think it's reasonable to assume that the pandemic was the immediate cause of having to cut staff. There's really no way to give several clear warnings about that.
It makes me wonder if the OP got their lines crossed about the lack of leadership thing being a significant part of the reason they got fired and/or there's a significant part of the story not being told here, like maybe the company is being pummeled by the effects of the pandemic and had to trim some of their more expensive employees (of which someone with 15 years of experience is likely to be) or something.