You might have your correlation/causation things mixed up. Walkability means higher quality of life, which means higher demand thus higher prices. In turn, as real estate prices go up, real estate developers are pressured to provide more houses from a limited construction area, thus this means shrinking apartment sizes.
Offering smaller apartments also has the advantage of increasing price per unit of area, while keeping selling prices within reach of the market segment you're targeting, i.e., you might not afford 1M for a house with 200m² but you might afford 500m for a house with 100m².