The professional and the personal are usually best kept separate.
While it isn’t wrong to befriend coworkers and do the best you can to contribute to a cordial working environment, it is a good thing to be able to leave the job at your front door instead of taking it home with you. In these days of the internet and remote working, it doesn’t always seem to be possible, but the divide is maintains that mythical work-life balance (as well as ensuring you minimize your time around annoying colleagues).
Of course, it is not uncommon to work with those who do their best to push those boundaries. When they have a more senior role, it can feel difficult to say no to their demands. Nonetheless, it is an important part of advocating for yourself to try to do that. Otherwise, they may keep pushing responsibilities onto you that are not yours to shoulder.