Your screenshot shows grey track autoratings derived from manual album ratings.
Script Editor is found in /Applications/Utilities/ on your Mac. You want to copy the second block of text which is the ClearTrackAutoRating script, paste it into a new empty document in Script Editor, select some tracks in Music, and then click the Run/Play button in Script Editor and follow the prompts. Assuming you are happy with the outcome select all the tracks with unwanted track autoratings, or all tracks, and run the script again. Manually rated tracks are left alone.
tt2