Why do wordpress store pages/posts within the database instead of files? [closed]

WordPress was forked (2003) from b2 that used PHP/MySQL, to generate pages dynamically – So I think that’s the why part.

https://codex.wordpress.org/History