Hard links are used to copy only the changed files between versions, improving performance and maintaining self-containment. This ensures that each version of the application is complete and standalone without duplicating the entire content.