means that
even the worst events usually bring some benefit to someone. A misfortune for one person may create an opportunity for another.
In other words:
No bad situation is without some positive consequence for someone.
The saying “It is an ill wind that blows nobody good” can be used when even the worst events usually bring some benefit to someone.