From Bau (“building”) + Kasten (“box”).
Baukasten m (strong, genitive Baukastens, plural Baukasten or Baukästen)