Free apps will shut down after periods of no traffic, so these kinds of projects aren't costing compute, but i suppose there's some overhead in storage.
Not sure how sophisticated their traffic monitoring has become but to avoid this it used to be as simple as having the dyno ping itself. Doesn't avoid the hard cap on hourly compute though.