Compression and anharmonicity of rare‐earth metals