Our local state school is great, DS has really flourished there and DD is settling into Y7 well.
However there are other state schools in the same town which really aren't great.
I moved to this part of town when my DC were small as I knew there was a selection of good schools here.
If are able to do so, then it's very normal for families to move to be near good schools rather than just sending their DC to the local school by default.
How old is your DD?
Have you done any research on your local schools? You need to look at their OFSTED reports, ask for opinions from local parents, and understand the admissions criteria well so you know which schools your child has a chance of actually getting into. Look at "admissions" on your council website for lots of information about local schools, admissions criteria etc.
Priority is usually done by distance (after siblings, looked after children etc) but there are often also catchment areas (or "community areas" as our council calls them) so you need to check which schools are in your catchment area.
You give a list of preferences for the school, a long time in advance (in our area we do it the October before the new school year I think). Typically you get 3 choices but in London you get 6 IIRC.
In most areas, if your first choice is full, you're not penalised for not putting your 2nd choice first when they look at who will get into that school. So put your genuine 1st choice 1st. (But do check how it works in your area.)
Also Kent does a Grammar school system so if you're there, you need to to find out about that.
If you're in Scotland ignore most of what I'm said, there you do simply go to the nearest school, you don't get a choice.
Keep posting here, we can help you make sense of the system!
Good luck 😊