The Scottish Parliament is limited in it’s powers. It’s not as if every single Scottish matter is decided in Edinburgh, and every English matter is decided at Westminster.
The Westminster parliament decides lots of matters that affect Scots as well. If Westminster only decided matters that affected England, then yeah a Scottish Prime Minister would be a silly choice, but clearly it dosent only decide matters that affect England.