Bengaluru Airport Arrival- random custom check at aero bridge?

So my husband landed last night at Bengaluru airport after a work trip . While de boarding, the flight officials announced his and another person’s name and asked them to step out of the aircraft first and they were met with so-called customs officials at the aero bridge and he was asked to show passport, asked if he had any other passports, asked why his passport was quite empty, (this was his second international trip), asked for his company employee ID, he had a connecting flight so he had show both his boarding passes. Did not check his luggage or any bags, did not ask him to declare any goods.

After the check he was allowed to proceed and when my husband enquired what this was regarding the official stated it was a random customs check. As far as I understand this does not seem random or a customs check. Can anyone confirm whether this indeed was a customs process and if this has happened to anyone else?