They probably were given a command to stay at 4000 above ground (AGL) level after takeoff. The plane was to level off until further instructions from ATC. Since the plane was set to sea level on takeoff, the plane tried to level off at 4000 ft above sea level which…is not good. The plane was pitched down to descend.