Hey @Teodoraaa, welcome to the Community.
Hope you're doing great!
In fact that's how the OSes are built, when using the native camera app all sounds released by the phone speakers so the mic isn't overwhelemed by the sound released by the speakers. Maybe you could try a third party video recording app to see if that works out.
Hope it helps 🙂