There is one saying "Every dark cloud has a silver lining". It means, for every unpleasant happenings, there is something good waiting for you. Thinking so, such unpleasant things are also good, given for (good) people as omen for good things later.
But it is also said in Gita, things
...