here in the coastal West US, a mid-career policeman does not make enough money to buy a house and have children. A credentialed school teacher does not make enough money to pay RENT in many desirable places, and nowhere near enough to have children of their own and buy a house.
Major city police are typically some of the highest paid public employees of any area. Often with a more generous pension tier than what is given to other public employees. Ie starting pay for SFPD is $115k-$164k https://www.joinsfpd.com/entry-level-program