It is important to remember that these two companies in particular didn't have an option to sit it out, unlike Apple. So they did what they had to however insane it feels to basically dump money into this furnace.
Google makes more sense since they’re also an infrastructure provider but Meta literally had no reason to jump in on the bandwagon other than it existing and being the hot new fad.
They also needed to signal to Wall Street that they're still capable of growing. That they're totally still a growth stock.