Eggs smelled bad but not anymore when I put them in the ref I recently bought a dozen eggs. But when I cracked them, they smelled bad, though they didn't float on water (which means they're good). When checking closely, I found out that even the unopened eggs smell bad but I put them in the ref anyway. 

When I checked again, 1-2 days later, the smell was gone (i didn't wash them or anything). 

why did they smell bad and were they safe?
Based on the circumstances and your comments, I'd have to guess that the eggs probably just taken out of the crates they were stored in, and therefore the egg smell built up in the cellulose carton.