Oaths which misuse God's name, though without the intention of blasphemy, show lack of respect for the Lord. The second commandment also forbids magical use of the divine name.
[God's] name is great when spoken with respect for the greatness of his majesty. God's name is holy when said with veneration and fear of offending him.
Source: Catechism of the Catholic Church (Vatican.va)