It's more nuanced.
Risk is commonly defined as the possibility of something bad happening.
And since this "something bad" is unknown, we tend to use volatility as an alias for it.
When you're investing, longer your investment horizon (holding period), more can you treat daily, or even weekly...