If you had , as you claimed , done the research , you would know that
The Education (Scotland) Act 1872 made education compulsory and took over the running of schools from the Church of Scotland. Burgh as well as parish schools now came under School Boards run by local committees. It was originally called the Scotch Education Department , was a committee of the Privy Council of the United Kingdom, and had its offices in London. In 1885 the department became a responsibility of the new ministerial post of Secretary for Scotland, under whom the Scottish Office was set up in Dover House, Whitehall, London.
You are attacking the wrong country .