When wet, coffee grounds will stick together instead of dissolving, and eventually cause build up in your pipes and solidify, preventing water from flowing through the pipes. Blockages in pipes can lead to cracked or broken pipes, water damages, and bacteria/mold growth.
Instead of putting your coffee grounds down your sink or toilet; consider using them for composting, odor neutralization, or pest deterrents in your garden.