Your phone is disconnecting from your home Wi-Fi because it is trying to connect to CarPlay. The phone only has one Wi-Fi radio in it and that one is needed for CarPlay. If you try to reconnect to your home Wi-Fi, CarPlay will no longer be available to you. This is true in any car equipped with wireless CarPlay, not just the Lucid.