The "y" is presumed to be a fossilized form of the mediaeval Castilian clitic pronoun "y" or "i", once meaning "there", but now semantically empty, historically cognate with French "y", Catalan "hi" and Italian "vi" from Latin "ibi".