It's tough to say if you were being mean. It's very kind of you to offer your time and space to someone else. Then after a few days, the drama begins. You no longer want to be with the other person. They become too dependent.
Then you snap and push them away for getting too close.
We can only learn from the past and hope not to repeat it.