On the origin of thermal anomalies in amorphous systems