I think there is some rules about it. A doubleheader simply means two teams will have a rematch on the same day. Before 2021, both games would have 9 innings like any official one. The regulation was changed to 7 innings due to Covid and then reversed back to 9 once pandemic restrictions became less of a worry.