As has been discussed before in this forum, it is legal for police to run license plates of cars they see, so long as it is for police business.
https://forum.freeadvice.com/showthread.php?t=301239&highlight=license+plate
Could you explain to me then what the law is and how it is they claim to not be profiling?
Profiling is when the police decide to pull you over because you fit some percieved profile of a 'criminal', such as racial profiling.
For racial profiling, the officer thinks "the percentage of african americans in the local prison population is double the local public stats, the driver is black, so he's twice as likely to be a criminal".
Racial profiling can be considered a violation of civil rights and is illegal in some cities/states.
What makes you think that the officer didn't just run 50 plate numbers today and yours happened to have warrants associated?