Great question — answering as the UphillTech team:
I can provide some advice here, the same thing happened to my parents on one of their Canada visa applications. At the time of the application they had previously visited Canada on a visitor visa and left well before the 6 months that they had been granted on entry. They also had a valid US visa and had travelled to the US multiple times. No history of overstay, spotless clean record etc etc. And yet they were denied a visitor visa to Canada (this application was made in 2020, their Indian passport had expired so they applied for a new passport and a new visa). Goes without saying that I don't think very highly about the competence of IRCC and their visa processing officers, but I digress....
Full answer by panditji: https://travel.stackexchange.com/a/188754 (CC BY-SA 4.0).
Need it done for your business? UphillTech.