Well, I see two aspects of your question. Anybody can be referred at any time for any reason. It doesn't mean you are a higher-risk or lower-risk individual. That's one aspect.
Is there anything you can do? Not really. We reserve the right to question anybody coming to Canada. Again, it's public security.
If you are concerned about what type of information was transmitted to Canada for your flight coming to Canada, and any API/PNR, anybody can go on the CBSA website and access their own API/PNR data at any time. There is a form. You can make the request.