Boss's confidant or eyeliner
Sometimes individual post leaders will put some people he trusts in important positions, even management positions. This person may not know anything (in fact, others are still capable), and he is responsible for signing everything to his subordinates (the legendary signing practice). Then usually you will see that he will have a very powerful deputy. If you don't have a deputy's name, just be a deputy and help him with all kinds of things. This is actually a means of boss management, much like the ancient imperial art, and it is a means of balance.
A person should be praised for his hard work, if not for his achievements.
Some people, who have followed the boss since he started his business, have experienced the boss's honor and disgrace, ups and downs, and are already family members and friends in the boss's heart. Maybe he has no ability, but because he has been with him for a long time, he may talk to the boss, give advice, or relieve boredom when he is bored. It doesn't matter if this old friend doesn't understand, and it doesn't matter if he has no ability. He just needs to find a capable person to cooperate, as long as he can find the key time.
The last possibility is that you can't find his good points.
Limited by your vision, your knowledge level, your vision and so on. You may not find his advantages and his contribution to the company, so you think he is a pig. It doesn't matter. In the process of getting along slowly, you will find out whether he is a pig or not.