@hyperlilredhead, the circumstances will make a considerable difference. If you had a secret affair with someone and it is remaining a secret, that is one kind of hiding, one that you must have agreed to when you entered into the affair. If you are, say, someone’s out-of-wedlock child and the family is keeping your role in the family a secret, that is another kind, one that you did not choose and had no say in. And if you have information about someone else that they want kept secret, you may or may not have agreed to it, but you are not the skeleton. You just know about the skeleton. In none of these cases are you necessarily a bad person (well, by some standards the affair would be bad).
Now, if you try to use your knowledge to coerce or harm someone, that’s a different matter entirely.
People often try to foist their own guilt on someone else. You do not have to accept it.