Applying a vapor barrier is necessary in cases where moisture is present in the concrete slab. This helps prevent moisture-related issues that could affect the performance of the epoxy coating.