Data is not a child. He was at least 27 by then. He has a real job with real responsibilities. He frequently carries weapons that can kill people and is fully trusted with them, along with fixing and flying the ship. He attended Starfleet and is third in command of the Enterprise, a ship with over a thousand people on board.
All that adds up to being at least 18+ mentally in human terms.