The patterns, habits, bondages of the old life don’t easily go away. There are wonderful stories of addictions that instantly leave when people come to Christ, but more often than not it takes a little more time.
Israel came out of slavery and still had a lot of Egypt in them. A few days (relatively speaking) out of Egypt and they are ready to default to what they knew in worship.
400 years of slavery wouldn’t be overcome by 40 days of freedom.
It’s a longer process and one we need to understand from the outset. It is a walk of understanding. A walk learning to trust God and quit trusting the gods of this world.
Egypt may be more deeply rooted than you anticipated. Keep walking in freedom.