ReceiptBank interview question

Why do we use foreign keys in DB