Some people may think coffee tastes like an ashtray due to the presence of compounds found in both substances. When coffee beans are roasted, they can absorb chemicals and compounds from their environment, including cigarette smoke. This can lead to an ashy taste in coffee, which some people may describe as similar to the taste of an ashtray.