Even they weren't shitheaded enough to remove their GIF decoder when the encoder was revealed to be patent-encumbered.
You're also completely discounting the cost of H264 licensing right now (estimated by some to be over 5 million dollars a year), and the cost of future licensing once the current license terms expire. You're also discounting the cost that Google pushes off to the rest of the market - like the money other manufacturers of software and hardware pay to support H264. Adobe has to pay for the H264 license Flash uses, and without that license, Youtube wouldn't be able to use H264.
Now, one could argue that since Theora isn't completely equivalent to H264 quality-wise, that Youtube wouldn't be able to provide video at the same bitrates. That's ridiculous. The typical Youtube viewer doesn't even know what a bitrate is and is unlikely to be able to identify encoding artifacts.
One should also consider that Google could easily pay a small team to work on improvements to the Theora encoder for a year or two, like they're doing on Unladen Swallow. The results would pay off on a fairly regular basis, allowing Google to re-encode their Theora videos for improvements in quality and bitrate efficiency. I have no doubt that with a sustained investment of resources, Theora could be highly competitive with H264 - if not superior - for Youtube's uses. Even if they were to dedicate 10 engineers for an entire year to working on Theora, the total costs there would not approach the cost of licensing H264.
If it would be cheaper there would be no reason not to do it. Google built support for Ogg into Chrome, so they aren't scared of the format. They aren't doing it so I'm going to go out on a limb here and say it's not cheaper.
http://people.xiph.org/~greg/video/ytcompare/comparison.html
That comparison, of course, is six months old and things change rapidly in a short span of time.