The funny thing is, the later union is actually based on the Scottish monarchy taking over the English one.
Scotland and England had the same monarch from 1603 onwards, but a union (which happened in 1707) was not inevitable. What caused the union was also financial positions, a wish for peace, monarchy played a part, but wasn’t the raison d’etre for the 1707 union.