First, the shallow water area of the swimming pool is usually around 1 meter, so children can stand firm. Secondly, I have been in kindergarten at this age and have the habit of listening to teachers.
Judging from the teaching experience of swimming coaches for many years, it is ok for children aged 4 or 5 to persist in learning, but they will suffer a lot of unnecessary hardships.