As entity integrity ensures the accessibility and successful search for a present row, as well as it prevents data conflict between the rows.
Furthermore any failure in searching the row will indicate that the row has no existence in the table.
On the other hand, referential integrity is important because its presence ensures that assigning a non existing foreign key to a table would be impossible.