I'm pretty sure it's common knowledge that the lumber from the big (blue and orange) box stores is incredibly lacking in quality.
Plywood is fine, but if you need anything you build to last, buy pressure treated at HD, or buy plain lumber somewhere else.
(I bought some 2x4s for a non-permanent project during the pandemic. It was so soft and wet that when I fired a railgun into one of the pieces, the nail went all the way through. That should not happen)