How does Host decide where to seat people?

How does the host decide where to seat people? I have noticed families with kids will be placed all over the restaurant, romantic couples placed next to rowdy groups or loud kids.

Who is given the tables with the nice views? People who are expected to be the big tippers?

I have found it so random. Very occasionally given a nice table, but more often than not wedged between the table with kids running all over the place and the rowdy group of college kids.