Hi, Nice observation ! I recommend you the book by Muller from which this article was inspired. Here's a notebook by Dr. Muller himself (https://github.com/amueller/introduction_to_ml_with_python/blob/master/06-algorithm-chains-and-pipelines.ipynb).
'Score' method on the pipeline first transforms the test data using the scaler, and then calls the score method on the SVM using the scaled test data. So the same thing happens in GridSearch also as written here (https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.GridSearchCV.html). Best wishes !!!