Data was being retrieved multiple times from the database to the ListViews, causing performance issues. This problem was resolved by using the DISTINCT keyword in the SQL query. By ensuring only unique data was fetched, duplicate records were eliminated, optimizing the database queries and improving ListView performance.