One possible explanation is a problem called Truss Uplift. This can happen in regions of the country where there are dramatic changes in temperature from season to season. Truss uplift is more commonly seen in the winter months. At this time of the year attic spaces become very cold, while the living space below is kept at a warm comfortable temperature. The lower trusses are close to the ceiling, covered by insulation and kept warm and dry while the roof supporting trusses are exposed to the freezing air in the attic. Air in the home’s attic is often very humid. This moisture laden air tends to condense on the support trusses and roof decking. The combination of moisture and cold temperatures makes the wood expand and puts pressure on the lower warm trusses. This pressure forces the lower trusses to bend upwards lifting them and the drywall which is attached. Even a small amount of uplift will pull the ceiling away from the walls causing cracks along the edges.
There's a way to prevent this problem. If you're building a new house, roof trusses should not be nailed directly to any interior walls. Instead, truss clips should be installed. These L-shaped clips are simple, inexpensive devices that attach directly to the top of interior walls. The bottom of the clip is nailed to the top wall plates. Then a nail is driven through the slot into the side of the bottom chord of the truss. The head of the nail needs to be driven so that it is short of touching the metal clip. The idea is that you want the truss to be able to flex up and down without pulling up the wall and attached drywall.
Care needs to be taken when hanging drywall in the home. Drywall should not be nailed or screwed directly to the trusses within 16 inches of an interior wall. Drywall can be fastened to pieces of wood that is fit between the trusses or metal clips that attach to the top of the interior walls. Because the upward truss movement occurs over a period of weeks or months, the drywall will flex at the corners.