You're framing this as if it's the EU's job. It isn't.
The only way the EU could compete if it would become a federal state, similar to the US. Right now the EU, despite being a single market in many respects is far from being a true digital single market.
Individual states are actively fighting against this because they would have give up bits of their sovereignty (controlling tax levels, such as VAT, commercial legislation, etc.).
You can't both have your cake (a huge single market able to funnel huge amounts of money into your desired investments) and eat it (keep total control of your country's finances).