Hyderabad initially didn't wish to join the newly independent nation of India. But due to ongoing war with Pakistan, India worried about a potential problem of Hyderabad joining Pakistan so they decided to invade.