Why the .metadata folder in my workspace stores a huge history?

This is a standard Eclipse feature. Eclipse keeps a local history of edited files by default. It lets you restore a file content from a previously saved local history by right-clicking a source file and selecting the Restore from local history... option. You can configure how the local history is stored. See How do I update my local history settings?