The correct similarity between la Biblioteca Nacional de España and the Library of Congress is:
They were both started from a private collection of books.
Both institutions originated from collections that were privately held before becoming national libraries serving broader public and governmental needs.