Modi will likely be India PM for 3rd term, but BJP lost its parliament majority. What happened?

Modi's party, the BJP, secured only 240 out of 543 seats in the parliament.