The magma cools down and solidifies, leaving behind a mound of rock, like Traprain Law. Igneous intrusions can be found all around Scotland, not just in Edinburgh and Lothian. Some other examples ...